From dc416a7cb33fe1529c99126ea2d720b5c21b0b59 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Fri, 10 Jan 2025 12:33:49 +0300 Subject: [PATCH] #3797: compact --- eo-maven-plugin/src/main/java/org/eolang/maven/LintMojo.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eo-maven-plugin/src/main/java/org/eolang/maven/LintMojo.java b/eo-maven-plugin/src/main/java/org/eolang/maven/LintMojo.java index 61f5e8b5fc..bda6a1132c 100644 --- a/eo-maven-plugin/src/main/java/org/eolang/maven/LintMojo.java +++ b/eo-maven-plugin/src/main/java/org/eolang/maven/LintMojo.java @@ -250,9 +250,7 @@ private static String summary(final ConcurrentHashMap 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(