This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
commit f68d095dc4a3e57a5d5f002666d6e7fa0ab986c8 Author: Gary Gregory <[email protected]> AuthorDate: Fri Nov 24 10:26:22 2023 -0500 No need for null check --- src/main/java/org/apache/commons/io/monitor/FileAlterationObserver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/io/monitor/FileAlterationObserver.java b/src/main/java/org/apache/commons/io/monitor/FileAlterationObserver.java index 81a39c61..b93dd8d9 100644 --- a/src/main/java/org/apache/commons/io/monitor/FileAlterationObserver.java +++ b/src/main/java/org/apache/commons/io/monitor/FileAlterationObserver.java @@ -425,7 +425,7 @@ public class FileAlterationObserver implements Serializable { if (children == null) { children = FileUtils.EMPTY_FILE_ARRAY; } - if (comparator != null && children.length > 1) { + if (children.length > 1) { Arrays.sort(children, comparator); } return children;
