From 947373eafc1b5d085485058ca8d9ca480d01ba94 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 29 Dec 2017 18:35:47 -0500 Subject: [PATCH] remove unnecessary if --- lib/contracts/code_generator.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/contracts/code_generator.js b/lib/contracts/code_generator.js index 368c1480f..2c9c58398 100644 --- a/lib/contracts/code_generator.js +++ b/lib/contracts/code_generator.js @@ -281,10 +281,8 @@ class CodeGenerator { code += "\n" + embarkjsCode + "\n"; let pluginsWithCode = this.plugins.getPluginsFor('embarkjsCode'); - if (pluginsWithCode.length > 0) { - for (let plugin of pluginsWithCode) { - code += plugin.embarkjs_code.join('\n'); - } + for (let plugin of pluginsWithCode) { + code += plugin.embarkjs_code.join('\n'); } //code += "\n" + fs.readFileSync(fs.embarkPath('js/embarkjs/orbit.js')).toString();