refactor: use optional catch binding (#39232)
This commit is contained in:
parent
8dea783805
commit
c9bae5da8e
11 changed files with 17 additions and 17 deletions
|
@ -1786,7 +1786,7 @@ describe('webContents module', () => {
|
|||
const cleanup = () => {
|
||||
try {
|
||||
fs.unlinkSync(filePath);
|
||||
} catch (e) {
|
||||
} catch {
|
||||
// ignore error
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue