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 f9e1a03d2b39f90b33a364b9a612a45ff3ad58e4 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Wed Sep 23 10:17:51 2020 -0400 No need to nest else clause. --- .../java/org/apache/commons/vfs2/provider/GenericURLFileName.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/GenericURLFileName.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/GenericURLFileName.java index a5526e7..58ababe 100644 --- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/GenericURLFileName.java +++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/GenericURLFileName.java @@ -16,8 +16,6 @@ */ package org.apache.commons.vfs2.provider; -import java.net.URISyntaxException; - import org.apache.commons.vfs2.FileName; import org.apache.commons.vfs2.FileSystemException; import org.apache.commons.vfs2.FileType; @@ -73,9 +71,8 @@ public class GenericURLFileName extends GenericFileName { if (getQueryString() == null) { if (charset != null) { return URIUtils.encodePath(getPathDecoded(), charset); - } else { - return URIUtils.encodePath(getPathDecoded()); } + return URIUtils.encodePath(getPathDecoded()); } final StringBuilder sb = new StringBuilder(BUFFER_SIZE);