Skip to content

Commit f843d2f

Browse files
committed
Remove unnecessary try/catch from cli script
1 parent b2a3b21 commit f843d2f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cli.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,5 @@ const importLocal = require('import-local');
77
if (importLocal(__filename)) {
88
debug('Using local install of AVA');
99
} else {
10-
try {
11-
require('./lib/cli').run();
12-
} catch (err) {
13-
console.error(`\n ${err.message}`);
14-
process.exit(1);
15-
}
10+
require('./lib/cli').run();
1611
}

0 commit comments

Comments
 (0)