We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52953dd commit 1306dffCopy full SHA for 1306dff
@commitlint/cli/src/cli.ts
@@ -103,14 +103,12 @@ const cli = yargs
103
`[input] reads from stdin if --edit, --env, --from and --to are omitted`
104
).argv;
105
106
-main(cli).catch(err =>
107
- setTimeout(() => {
108
- if (err.type === pkg.name) {
109
- process.exit(1);
110
- }
111
- throw err;
112
- }, 0)
113
-);
+main(cli).catch(err => {
+ if (err.type === pkg.name) {
+ process.exit(1);
+ }
+ throw err;
+});
114
115
async function main(options: CliFlags) {
116
const raw = options._;
0 commit comments