commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1033623 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/sftp/SftpClientFactory.java
Date Wed, 10 Nov 2010 18:08:46 GMT
Author: sebb
Date: Wed Nov 10 18:08:45 2010
New Revision: 1033623

URL: http://svn.apache.org/viewvc?rev=1033623&view=rev
Log:
Cannot be null here

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

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/sftp/SftpClientFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/sftp/SftpClientFactory.java?rev=1033623&r1=1033622&r2=1033623&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/sftp/SftpClientFactory.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/sftp/SftpClientFactory.java
Wed Nov 10 18:08:45 2010
@@ -79,10 +79,7 @@ public final class SftpClientFactory
         }
         else
         {
-            if (sshDir == null)
-            {
-                sshDir = findSshDir();
-            }
+            sshDir = findSshDir();
             // Load the known hosts file
             knownHostsFile = new File(sshDir, "known_hosts");
             if (knownHostsFile.isFile() && knownHostsFile.canRead())



Mime
View raw message