Skip to content

Commit

Permalink
Fix output: "1 vulnerabilities" -> "1 vulnerability"
Browse files Browse the repository at this point in the history
  • Loading branch information
mt-ronkorving committed Apr 18, 2018
1 parent ed8d3a8 commit 1c80269
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/formatters/human.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ function printTotal(summary, severity) {
const found = summary[severity];

if (found > 0) {
print(chalk.bold(`Found ${found} ${severity}-level vulnerabilities`));
if (found === 1) {
print(chalk.bold(`Found ${found} ${severity}-level vulnerability`));
} else {
print(chalk.bold(`Found ${found} ${severity}-level vulnerabilities`));
}
}
}

Expand Down

0 comments on commit 1c80269

Please sign in to comment.