Skip to content

Commit ab45afe

Browse files
authored
Merge pull request #3 from footniko/master
Fix class constructor
2 parents 1e027f3 + 207ba88 commit ab45afe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class ConfigParser {
99
* @param {Object} settings Parser settings.
1010
* @param {String} settings.prefix Prefix to prepend to each ENV variable.
1111
*/
12-
constructor(settings) {
12+
constructor(settings = {}) {
1313
this.prefix = settings.prefix || '';
1414
}
1515

0 commit comments

Comments
 (0)