refactor: use optional catch binding (#39232)
This commit is contained in:
parent
8dea783805
commit
c9bae5da8e
11 changed files with 17 additions and 17 deletions
2
spec/fixtures/module/echo-renamed.js
vendored
2
spec/fixtures/module/echo-renamed.js
vendored
|
@ -1,7 +1,7 @@
|
|||
let echo;
|
||||
try {
|
||||
echo = require('@electron-ci/echo');
|
||||
} catch (e) {
|
||||
} catch {
|
||||
process.exit(1);
|
||||
}
|
||||
process.exit(echo(0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue