Skip to content

Commit

Permalink
#3797: compact
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jan 10, 2025
1 parent 02dd8f4 commit dc416a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions eo-maven-plugin/src/main/java/org/eolang/maven/LintMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,7 @@ private static String summary(final ConcurrentHashMap<Severity, Integer> counts)
parts.add("no complaints");
}
final String sum;
if (parts.size() == 1) {
sum = parts.get(0);
} else if (parts.size() == 2) {
if (parts.size() < 3) {
sum = String.join(" and ", parts);
} else {
sum = String.format(
Expand Down

0 comments on commit dc416a7

Please sign in to comment.