curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject [1/3] curator git commit: Removed unnecessary size check
Date Tue, 08 Sep 2015 17:23:03 GMT
Repository: curator
Updated Branches:
  refs/heads/CURATOR-3.0 7aa371e95 -> b161867c1


Removed unnecessary size check


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/2e8f2528
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/2e8f2528
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/2e8f2528

Branch: refs/heads/CURATOR-3.0
Commit: 2e8f2528c57b0b4f1d61f5698e443f9f2d03f559
Parents: 7aa371e
Author: randgalt <randgalt@apache.org>
Authored: Tue Sep 8 11:46:26 2015 -0500
Committer: randgalt <randgalt@apache.org>
Committed: Tue Sep 8 11:46:26 2015 -0500

----------------------------------------------------------------------
 .../src/main/java/org/apache/curator/SessionFailRetryLoop.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/2e8f2528/curator-client/src/main/java/org/apache/curator/SessionFailRetryLoop.java
----------------------------------------------------------------------
diff --git a/curator-client/src/main/java/org/apache/curator/SessionFailRetryLoop.java b/curator-client/src/main/java/org/apache/curator/SessionFailRetryLoop.java
index 8647952..ed0fe2e 100644
--- a/curator-client/src/main/java/org/apache/curator/SessionFailRetryLoop.java
+++ b/curator-client/src/main/java/org/apache/curator/SessionFailRetryLoop.java
@@ -179,7 +179,7 @@ public class SessionFailRetryLoop implements Closeable
 
     static boolean sessionForThreadHasFailed()
     {
-        return (failedSessionThreads.size() > 0) && failedSessionThreads.contains(Thread.currentThread());
+        return failedSessionThreads.contains(Thread.currentThread());
     }
 
     /**


Mime
View raw message