Skip to content

Commit

Permalink
fix: make cwd argument optional again (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU committed May 5, 2020
1 parent a6adb3b commit be08907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/configLoader/loader.js
Expand Up @@ -14,12 +14,12 @@ export default loader;
/**
* Get content of the configuration file
* @param {String} config - partial path to configuration file
* @param {String} cwd - directory path which will be joined with config argument
* @param {String} [cwd = process.cwd()] - directory path which will be joined with config argument
* @return {Object|undefined}
*/
function loader (configs, config, cwd) {
var content;
var directory = cwd;
var directory = cwd || process.cwd();

// If config option is given, attempt to load it
if (config) {
Expand Down

0 comments on commit be08907

Please sign in to comment.