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 2020/09/11 00:31:31 UTC
[commons-vfs] 01/04: No need to nest.
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
commit d53db44db134805ad932cae58ce5b50d74e0b738
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Sep 10 20:20:21 2020 -0400
No need to nest.
---
.../org/apache/commons/vfs2/impl/FileContentInfoFilenameFactory.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/FileContentInfoFilenameFactory.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/FileContentInfoFilenameFactory.java
index 2888ff6..52d660f 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/FileContentInfoFilenameFactory.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/impl/FileContentInfoFilenameFactory.java
@@ -45,8 +45,7 @@ public class FileContentInfoFilenameFactory implements FileContentInfoFactory {
// optimize object creation for common case
if (contentType == null) {
return NULL_INFO;
- } else {
- return new DefaultFileContentInfo(contentType, null);
}
+ return new DefaultFileContentInfo(contentType, null);
}
}