diff --git a/lib/remove/rimraf.js b/lib/remove/rimraf.js index 42eefe52..141a82d2 100644 --- a/lib/remove/rimraf.js +++ b/lib/remove/rimraf.js @@ -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()) {