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
lint fix
  • Loading branch information
RaisinTen committed Jun 3, 2021
commit 838cad0441e5c26f56fe5af67291aaee902ab5a2
8 changes: 4 additions & 4 deletions test/parallel/test-fs-rm.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ function removeAsync(dir) {
// On Windows, we are allowed to access and modify the contents of a
// read-only folder.
return common.isWindows ?
(exists === false && err === null) :
(exists === true && err?.code === 'EACCES');
(exists === false && err === null) :
(exists === true && err?.code === 'EACCES');
}

{
Expand Down Expand Up @@ -366,8 +366,8 @@ function removeAsync(dir) {
// 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');
(exists === true && err?.code === 'EPERM') :
(exists === true && err?.code === 'EACCES');
}

{
Expand Down