Skip to content

Commit 1c80269

Browse files
committed
Fix output: "1 vulnerabilities" -> "1 vulnerability"
1 parent ed8d3a8 commit 1c80269

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/formatters/human.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ function printTotal(summary, severity) {
5252
const found = summary[severity];
5353

5454
if (found > 0) {
55-
print(chalk.bold(`Found ${found} ${severity}-level vulnerabilities`));
55+
if (found === 1) {
56+
print(chalk.bold(`Found ${found} ${severity}-level vulnerability`));
57+
} else {
58+
print(chalk.bold(`Found ${found} ${severity}-level vulnerabilities`));
59+
}
5660
}
5761
}
5862

0 commit comments

Comments
 (0)