Skip to content

Commit e2ee3d9

Browse files
committed
refactor(cli): shorten statement #4142
1 parent f5a8fc9 commit e2ee3d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

@commitlint/cli/src/cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ async function main(args: MainArgs): Promise<void> {
387387
throw new CliError(output, pkg.name, 2);
388388
}
389389
}
390-
if (!report.valid && isRulesEmpty) {
390+
if (isRulesEmpty) {
391391
throw new CliError(output, pkg.name, 9);
392392
}
393393
if (!report.valid) {

0 commit comments

Comments
 (0)