Skip to content

Commit

Permalink
removed default value in function parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Naddy committed Mar 28, 2018
1 parent dd36212 commit e4c3564
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ function config (options) {
* @param {string} key The environment key
* @param {any} [defaultValue=''] A fallback value to return
*/
get: function (key, defaultValue = '') {
get: function (key, defaultValue) {
if (typeof defaultValue === 'undefined') defaultValue = ''
return typeof this.parsed[key] !== 'undefined' ? this.parsed[key] : defaultValue
},
/**
Expand Down

0 comments on commit e4c3564

Please sign in to comment.