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
  • Loading branch information
RaisinTen authored Jun 3, 2021
commit f48b819abcc7af41f433c33995c7533113385a51
11 changes: 2 additions & 9 deletions test/common/tmpdir.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,8 @@ function rmSync(pathname) {
if (errCode === 'EACCES' || errCode === 'EPERM') {
const surroundingDir = path.join(errPath, '..');

try {
fs.chmodSync(surroundingDir, 0o777);
} catch {
}

try {
fs.chmodSync(errPath, 0o777);
} catch {
}
try { fs.chmodSync(surroundingDir, 0o777); } catch {}
try { fs.chmodSync(errPath, 0o777); } catch {}
}
}

Expand Down