Skip to content

Commit

Permalink
Merge pull request #393 from jprichardson/rimraf-callback
Browse files Browse the repository at this point in the history
Prevent callback from being called twice
  • Loading branch information
RyanZim committed Mar 16, 2017
2 parents cfcf313 + 55c5eb0 commit 6f2b6d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/remove/rimraf.js
Expand Up @@ -83,7 +83,7 @@ function rimraf_ (p, options, cb) {

// Windows can EPERM on stat. Life is suffering.
if (er && er.code === 'EPERM' && isWindows) {
fixWinEPERM(p, options, er, cb)
return fixWinEPERM(p, options, er, cb)
}

if (st && st.isDirectory()) {
Expand Down

0 comments on commit 6f2b6d1

Please sign in to comment.