Skip to content

Commit

Permalink
Fixing provider issue in source
Browse files Browse the repository at this point in the history
  • Loading branch information
qwasibuild authored and indexzero committed Sep 20, 2015
1 parent 51653e6 commit a3589fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/nconf/provider.js
Expand Up @@ -210,6 +210,12 @@ Provider.prototype.init = function (options) {
// Retrieves the value for the specified key (if any).
//
Provider.prototype.get = function (key, callback) {
if (typeof key === 'function') {
// Allow a * key call to be made
callback = key;
key = null;
}

//
// If there is no callback we can short-circuit into the default
// logic for traversing stores.
Expand Down

0 comments on commit a3589fa

Please sign in to comment.