You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/03/28 12:35:09 UTC
[commons-vfs] branch master updated: Simplify if conditions (#170)
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-vfs.git
The following commit(s) were added to refs/heads/master by this push:
new cd9125c Simplify if conditions (#170)
cd9125c is described below
commit cd9125c4535e4b22657a6e2434b2ef6498adbf21
Author: Arturo Bernal <ar...@gmail.com>
AuthorDate: Sun Mar 28 14:35:02 2021 +0200
Simplify if conditions (#170)
---
.../src/main/java/org/apache/commons/vfs2/FileFilterSelector.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileFilterSelector.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileFilterSelector.java
index 44f6958..b5db30a 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileFilterSelector.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileFilterSelector.java
@@ -48,7 +48,7 @@ public class FileFilterSelector extends FileDepthSelector {
*/
@Override
public boolean includeFile(final FileSelectInfo fileInfo) throws Exception {
- return super.includeFile(fileInfo) ? accept(fileInfo) : false;
+ return super.includeFile(fileInfo) && accept(fileInfo);
}
/**