mirror of https://github.com/Seich/Beau.git
I need to stop rewriting builtin methods with reduce. (#36)
This commit is contained in:
parent
ef34ea04aa
commit
450d53e9f9
|
|
@ -16,7 +16,7 @@ const openConfigFile = configFile => {
|
||||||
const loadConfig = (configFile, params = []) => {
|
const loadConfig = (configFile, params = []) => {
|
||||||
const config = openConfigFile(configFile);
|
const config = openConfigFile(configFile);
|
||||||
const env = dotenv.config().parsed || {};
|
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) };
|
const envParams = { _: Object.assign(env, params) };
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue