From aa8f6546d57c12a615cd52628019c21fb7653960 Mon Sep 17 00:00:00 2001 From: Vasil Trifonov Date: Wed, 26 Sep 2018 15:20:54 +0300 Subject: [PATCH 1/2] add a check for undefined environment values --- lib/compiler.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/compiler.js b/lib/compiler.js index 159c366a..436403ba 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -135,6 +135,9 @@ function buildEnvCommandLineParams(config, envData, $logger) { const args = []; envFlagNames.map(item => { let envValue = envData[item]; + if( typeof envValue === "undefined") { + return; + } if (typeof envValue === "boolean") { if (envValue) { args.push(`--env.${item}`); From 28046e7a3bdded0764777585236528a24522d049 Mon Sep 17 00:00:00 2001 From: Vasil Chimev Date: Wed, 26 Sep 2018 18:01:20 +0300 Subject: [PATCH 2/2] style: formatting --- lib/compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compiler.js b/lib/compiler.js index 436403ba..75c3da0f 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -135,7 +135,7 @@ function buildEnvCommandLineParams(config, envData, $logger) { const args = []; envFlagNames.map(item => { let envValue = envData[item]; - if( typeof envValue === "undefined") { + if (typeof envValue === "undefined") { return; } if (typeof envValue === "boolean") {