ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gscok...@apache.org
Subject svn commit: r613802 - /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/ssh/SshCache.java
Date Mon, 21 Jan 2008 09:00:49 GMT
Author: gscokart
Date: Mon Jan 21 01:00:42 2008
New Revision: 613802

URL: http://svn.apache.org/viewvc?rev=613802&view=rev
Log:
small cleanup

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/ssh/SshCache.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/ssh/SshCache.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/ssh/SshCache.java?rev=613802&r1=613801&r2=613802&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/ssh/SshCache.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/ssh/SshCache.java Mon Jan
21 01:00:42 2008
@@ -327,10 +327,8 @@
                 Message.verbose(":: SSH :: connected to " + host + "!");
                 setSession(username, host, port, session);
             } catch (JSchException e) {
-                if (passFile!=null) {
-                  if (passFile.exists()) {
+                if (passFile != null && passFile.exists()) {
                     passFile.delete();
-                  }
                 }
                 IOException ex = new IOException(e.getMessage());
                 ex.initCause(e);



Mime
View raw message