Skip to content

Commit

Permalink
Use lstat passed in on options object
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jul 3, 2016
1 parent 37b4415 commit 39f8d1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rimraf.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function rimraf (p, options, cb) {
if (options.disableGlob || !glob.hasMagic(p))
return afterGlob(null, [p])

fs.lstat(p, function (er, stat) {
options.lstat(p, function (er, stat) {
if (!er)
return afterGlob(null, [p])

Expand Down Expand Up @@ -273,7 +273,7 @@ function rimrafSync (p, options) {
results = [p]
} else {
try {
fs.lstatSync(p)
options.lstatSync(p)
results = [p]
} catch (er) {
results = glob.sync(p, options.glob)
Expand Down

0 comments on commit 39f8d1e

Please sign in to comment.