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 d4e6c6e98a9345c29eb1b98c772b040c7b4cfdc2
8 changes: 4 additions & 4 deletions test/parallel/test-fs-rm.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ function removeAsync(dir) {
fs.chmodSync(dirname, 0o444);

fs.rm(filePath, { force: true }, common.mustCall((err) => {
try { fs.chmodSync(dirname, 0o777); } catch {}
try { fs.chmodSync(filePath, 0o777); } catch {}
try { fs.chmodSync(dirname, 0o777); } catch {}
try { fs.chmodSync(filePath, 0o777); } catch {}

if (!isValidState(fs.existsSync(filePath), err)) {
throw err;
Expand Down Expand Up @@ -398,8 +398,8 @@ function removeAsync(dir) {
fs.chmodSync(middle, 0o555);

fs.rm(root, { recursive: true }, common.mustCall((err) => {
try { fs.chmodSync(middle, 0o777); } catch {}
try { fs.chmodSync(leaf, 0o777); } catch {}
try { fs.chmodSync(middle, 0o777); } catch {}
try { fs.chmodSync(leaf, 0o777); } catch {}

if (!isValidState(fs.existsSync(root), err)) {
throw err;
Expand Down