From 667b552bf5177dfe68457231e5308d617c08ca43 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Thu, 5 Dec 2019 21:50:02 +0200 Subject: [PATCH] Fix error when supplying all config values from env variables If there was no config file and all config values were loaded from env variables, the userConfig object was never assigned a value and would throw an error when loading env variables. --- src/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.js b/src/config.js index a9546e5..e38e048 100644 --- a/src/config.js +++ b/src/config.js @@ -12,7 +12,7 @@ const fs = require('fs'); const path = require('path'); -let userConfig; +let userConfig = {}; // Config files to search for, in priority order const configFiles = [