Skip to content

Commit

Permalink
Fix: Properly handle path.resolve with non-string in node 0.9 (closes #2
Browse files Browse the repository at this point in the history
, closes #3)
  • Loading branch information
mokkabonna authored and phated committed Dec 28, 2018
1 parent 0ea26fa commit 740af08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/findup-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = function(patterns, options) {
// original object.
var globOptions = Object.create(options || {});
globOptions.maxDepth = 1;
globOptions.cwd = path.resolve(globOptions.cwd);
globOptions.cwd = path.resolve(globOptions.cwd || '.');

var files, lastpath;
do {
Expand Down

0 comments on commit 740af08

Please sign in to comment.