Skip to content

Commit 94ea1cf

Browse files
ruyadornoisaacs
authored andcommittedOct 2, 2019
Use explicit block in order to isolate istanbul ignore comment
PR-URL: #12 Credit: @ruyadorno Close: #12 Reviewed-by: @isaacs
1 parent c8d624e commit 94ea1cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎lib/util/move-file.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ function moveFile (src, dest) {
2525
if (err) {
2626
if (err.code === 'EEXIST' || err.code === 'EBUSY') {
2727
// file already exists, so whatever
28-
}/* istanbul ignore next */ else if (err.code === 'EPERM' && process.platform === 'win32') {
29-
// file handle stayed open even past graceful-fs limits
3028
} else {
29+
/* istanbul ignore next */
30+
if (err.code === 'EPERM' && process.platform === 'win32') {
31+
// file handle stayed open even past graceful-fs limits
32+
}
3133
return reject(err)
3234
}
3335
}

0 commit comments

Comments
 (0)
Please sign in to comment.