From 2560403dffdc516cde2c097196875250346149b0 Mon Sep 17 00:00:00 2001 From: David Diaz Date: Thu, 14 Jun 2018 18:51:55 -0600 Subject: [PATCH] I need to stop rewriting builtin methods with reduce. --- bin/cli/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cli/utils.js b/bin/cli/utils.js index fd3df10..c9d2b27 100644 --- a/bin/cli/utils.js +++ b/bin/cli/utils.js @@ -16,7 +16,7 @@ const openConfigFile = configFile => { const loadConfig = (configFile, params = []) => { const config = openConfigFile(configFile); const env = dotenv.config().parsed || {}; - params = dotenv.parse(params.reduce((a, p) => a + '\n' + p, '')); + params = dotenv.parse(params.join('\n')); const envParams = { _: Object.assign(env, params) };