Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix logic error

  • Loading branch information...
commit 1e6f98dfb28c23e54dc86544081b5602e9d8d703 1 parent a4b512b
@medikoo authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/fs/readdir.js
View
4 lib/fs/readdir.js
@@ -486,8 +486,8 @@ module.exports = function (path) {
throw new Error("Unknown mode '" + name + "'");
}
isRoot = memoize.call(watch ? mode.isRootWatch : mode.isRoot);
- findRoot = function (path) {
- var finder = new FindRoot(dirname(path), watch);
+ findRoot = function () {
+ var finder = new FindRoot(this.path, watch);
finder.isRoot = isRoot;
finder.next();
return finder.promise;
Please sign in to comment.
Something went wrong with that request. Please try again.