This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 2abb196ee62fbe26ec4f2b9451eb67236b1d5ff4 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Tue Mar 22 11:31:12 2022 +0100 (chores) camel-report-maven-plugin: simplify check for pattern matching --- .../src/main/java/org/apache/camel/maven/ValidateMojo.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/catalog/camel-report-maven-plugin/src/main/java/org/apache/camel/maven/ValidateMojo.java b/catalog/camel-report-maven-plugin/src/main/java/org/apache/camel/maven/ValidateMojo.java index 1f5c9ba..d203cc9 100644 --- a/catalog/camel-report-maven-plugin/src/main/java/org/apache/camel/maven/ValidateMojo.java +++ b/catalog/camel-report-maven-plugin/src/main/java/org/apache/camel/maven/ValidateMojo.java @@ -949,10 +949,7 @@ public class ValidateMojo extends AbstractExecMojo { // include if (includes != null) { - if (fileListMatchesPattern(includes, file)) - return true; - // did not match any includes - return false; + return fileListMatchesPattern(includes, file); } // was not excluded nor failed include so its accepted
