refactor: use optional catch binding (#39232)
This commit is contained in:
parent
8dea783805
commit
c9bae5da8e
11 changed files with 17 additions and 17 deletions
4
spec/fixtures/api/default-menu/main.js
vendored
4
spec/fixtures/api/default-menu/main.js
vendored
|
@ -22,11 +22,11 @@ try {
|
|||
setImmediate(() => {
|
||||
try {
|
||||
output(Menu.getApplicationMenu() === expectedMenu);
|
||||
} catch (error) {
|
||||
} catch {
|
||||
output(null);
|
||||
}
|
||||
});
|
||||
});
|
||||
} catch (error) {
|
||||
} catch {
|
||||
output(null);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue