remove unnecessary if

This commit is contained in:
Iuri Matias 2017-12-29 18:35:47 -05:00
parent 3fb02befea
commit 947373eafc

View File

@ -281,10 +281,8 @@ class CodeGenerator {
code += "\n" + embarkjsCode + "\n"; code += "\n" + embarkjsCode + "\n";
let pluginsWithCode = this.plugins.getPluginsFor('embarkjsCode'); let pluginsWithCode = this.plugins.getPluginsFor('embarkjsCode');
if (pluginsWithCode.length > 0) { for (let plugin of pluginsWithCode) {
for (let plugin of pluginsWithCode) { code += plugin.embarkjs_code.join('\n');
code += plugin.embarkjs_code.join('\n');
}
} }
//code += "\n" + fs.readFileSync(fs.embarkPath('js/embarkjs/orbit.js')).toString(); //code += "\n" + fs.readFileSync(fs.embarkPath('js/embarkjs/orbit.js')).toString();