commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1750874 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java
Date Fri, 01 Jul 2016 04:57:21 GMT
Author: ggregory
Date: Fri Jul  1 04:57:21 2016
New Revision: 1750874

URL: http://svn.apache.org/viewvc?rev=1750874&view=rev
Log:
Statement unnecessarily nested within else clause.

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java?rev=1750874&r1=1750873&r2=1750874&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java
Fri Jul  1 04:57:21 2016
@@ -127,10 +127,7 @@ public class SftpFileObject extends Abst
         {
             return FileType.FOLDER;
         }
-        else
-        {
-            return FileType.FILE;
-        }
+        return FileType.FILE;
     }
 
     /**



Mime
View raw message