From d4f6aa561c0de6bbc19c529c3bc61aefb318a7be Mon Sep 17 00:00:00 2001 From: "trevor@ultra.io" Date: Wed, 14 Jun 2023 14:56:55 -0600 Subject: [PATCH] Fix Double Output Bug --- package.json | 2 +- src/builder/index.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index cc4359f..c090d8e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ultraio/contract-builder", - "version": "1.0.3", + "version": "1.0.4", "description": "", "bin": { "contract-builder": "./bin/cli.js" diff --git a/src/builder/index.ts b/src/builder/index.ts index 1f3b001..8947a60 100644 --- a/src/builder/index.ts +++ b/src/builder/index.ts @@ -51,9 +51,9 @@ export async function buildContract( echo: true, workdir: isCmake ? '/opt/buildable/build' : undefined, }); - } - if (options.appendLine) { - options.appendLine(response); + if (options.appendLine) { + options.appendLine(response); + } } }