Skip to content

Commit 0dfd3c5

Browse files
committed
adding prop check
1 parent 60506a2 commit 0dfd3c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ exports.load = function(fileName, currentEnv) {
2929
//Check config entry's for ENV objects
3030
//which will tell us to grab configuration from the environment
3131
for (var configEntry in config[env]) {
32-
if (config[env][configEntry].ENV != null){
32+
if (config[env][configEntry] && config[env][configEntry].ENV != null){
3333
config[env][configEntry] = process.env[config[env][configEntry].ENV];
3434
}
3535
}

0 commit comments

Comments
 (0)