Skip to content

Commit

Permalink
refactor(cli): shorten statement #4142
Browse files Browse the repository at this point in the history
  • Loading branch information
escapedcat committed Sep 11, 2024
1 parent f5a8fc9 commit e2ee3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion @commitlint/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ async function main(args: MainArgs): Promise<void> {
throw new CliError(output, pkg.name, 2);
}
}
if (!report.valid && isRulesEmpty) {
if (isRulesEmpty) {
throw new CliError(output, pkg.name, 9);
}
if (!report.valid) {
Expand Down

0 comments on commit e2ee3d9

Please sign in to comment.