Skip to content

Commit

Permalink
Prevent callback from being called twice
Browse files Browse the repository at this point in the history
Fixes #392
  • Loading branch information
RyanZim committed Mar 16, 2017
1 parent cfcf313 commit 55c5eb0
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 55c5eb0

Please sign in to comment.