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/11/25 18:31:56 UTC

[commons-vfs] 01/04: Drop useless parentheses.

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 78bc12dc40279bf4ad7ec887c0289b9a94ef1b7c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Nov 25 13:03:34 2021 -0500

    Drop useless parentheses.
---
 .../java/org/apache/commons/vfs2/provider/http4/Http4FileSystem.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystem.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystem.java
index b683157..9747232 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystem.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http4/Http4FileSystem.java
@@ -66,7 +66,7 @@ public class Http4FileSystem extends AbstractFileSystem {
 
         final String rootURI = getRootURI();
         final int offset = rootURI.indexOf(':');
-        final char lastCharOfScheme = (offset > 0) ? rootURI.charAt(offset - 1) : 0;
+        final char lastCharOfScheme = offset > 0 ? rootURI.charAt(offset - 1) : 0;
 
         // if scheme is 'http*s' or 'HTTP*S', then the internal base URI should be 'https'. 'http' otherwise.
         if (lastCharOfScheme == 's' || lastCharOfScheme == 'S') {