Skip to content

Commit 0858c86

Browse files
thefourtheyervagg
authored andcommitted
test: fix invalid variable name
The variable `er` is not declared at all. So if EPERM error is ever raised then the `er` will throw `ReferenceError` and the code will break. PR-URL: #3150 Reviewed-By: Brian White <[email protected]>
1 parent 39b8730 commit 0858c86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎test/common.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function rimrafSync(p){
3030
if(e.code==='ENOENT')
3131
return;
3232
if(e.code==='EPERM')
33-
returnrmdirSync(p,er);
33+
returnrmdirSync(p,e);
3434
if(e.code!=='EISDIR')
3535
throwe;
3636
rmdirSync(p,e);

0 commit comments

Comments
(0)