You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2010/11/10 19:08:46 UTC

svn commit: r1033623 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/sftp/SftpClientFactory.java

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())