From e2ee3d916474b512576f1d118dafe784abb5adab Mon Sep 17 00:00:00 2001 From: escapedcat Date: Wed, 11 Sep 2024 14:05:12 +0800 Subject: [PATCH] refactor(cli): shorten statement #4142 --- @commitlint/cli/src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@commitlint/cli/src/cli.ts b/@commitlint/cli/src/cli.ts index 2f3413142c..66b0ee0b81 100644 --- a/@commitlint/cli/src/cli.ts +++ b/@commitlint/cli/src/cli.ts @@ -387,7 +387,7 @@ async function main(args: MainArgs): Promise { throw new CliError(output, pkg.name, 2); } } - if (!report.valid && isRulesEmpty) { + if (isRulesEmpty) { throw new CliError(output, pkg.name, 9); } if (!report.valid) {