Skip to content

Commit

Permalink
make sure env.err is cleared when config is called
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoncalabrese committed Apr 24, 2016
1 parent bffb291 commit 893c164
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions env.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ function config ( ) {
env.PORT = readENV('PORT', 1337);
env.static_files = readENV('NIGHTSCOUT_STATIC_FILES', __dirname + '/static/');

if (env.err) {
delete env.err;
}

setSSL();
setAPISecret();
setVersion();
Expand Down

0 comments on commit 893c164

Please sign in to comment.