Skip to content
Browse files

Use obj, not just declare it

  • Loading branch information...
1 parent e7d0208 commit 074782a0525fc5e53a587fe7f78d20e10c57b72a @schinken schinken committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
2 index.js
@@ -18,7 +18,7 @@ exports.sync = function (x, opts) {
if (!opts) opts = {};
var isFile = opts.isFile || function (file) {
var obj = fs.existsSync ? fs : path;
- return path.existsSync(file) && fs.statSync(file).isFile()
+ return obj.existsSync(file) && fs.statSync(file).isFile()
};
var readFileSync = opts.readFileSync || fs.readFileSync;

0 comments on commit 074782a

Please sign in to comment.
Something went wrong with that request. Please try again.