Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Antoine du Hamel <[email protected]>
  • Loading branch information
RaisinTen and aduh95 authored Jun 3, 2021
commit f67b959291bc09582a990800bd6967c5890382bb
5 changes: 2 additions & 3 deletions test/parallel/test-fs-rm.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,8 @@ function removeAsync(dir) {
// On Windows, we are not allowed to delete a read-only folder yet.
// TODO(RaisinTen): Remove Windows special-casing if this lands:
// https://github.com/libuv/libuv/pull/3193
return common.isWindows ?
(exists === true && err?.code === 'EPERM') :
(exists === true && err?.code === 'EACCES');
return exists === true &&
err?.code === common.isWindows ? 'EPERM' : 'EACCES';
}

{
Expand Down