remove unnecessary if

This commit is contained in:
Iuri Matias 2017-12-29 18:35:47 -05:00
parent 3fb02befea
commit 947373eafc
1 changed files with 2 additions and 4 deletions

View File

@ -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();