Skip to content

Commit

Permalink
Check directory for value
Browse files Browse the repository at this point in the history
  • Loading branch information
floatdrop committed Apr 24, 2014
1 parent 7fa5664 commit ccb236b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -28,7 +28,7 @@ var softRequire = function (entity) {
* @returns {*} config
*/
var loadDirectory = function (directory, defaultEnv, environment) {
directory = path.resolve(directory) || path.join(process.cwd(), 'configs');
directory = directory ? path.resolve(directory) : path.join(process.cwd(), 'configs');
defaultEnv = defaultEnv || 'default';
environment = environment || defaultEnv;

Expand Down

0 comments on commit ccb236b

Please sign in to comment.