You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by jw...@apache.org on 2016/08/05 05:41:26 UTC

groovy git commit: minor cleanup: remove redundant conditional

Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X 71b6107bb -> 2504a77f9


minor cleanup: remove redundant conditional


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/2504a77f
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/2504a77f
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/2504a77f

Branch: refs/heads/GROOVY_2_4_X
Commit: 2504a77f9cda063f53774138627ea52568ecd12b
Parents: 71b6107
Author: John Wagenleitner <jw...@apache.org>
Authored: Thu Aug 4 22:01:31 2016 -0700
Committer: John Wagenleitner <jw...@apache.org>
Committed: Thu Aug 4 22:40:26 2016 -0700

----------------------------------------------------------------------
 src/main/groovy/util/GroovyCollections.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/2504a77f/src/main/groovy/util/GroovyCollections.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/util/GroovyCollections.java b/src/main/groovy/util/GroovyCollections.java
index ab1590f..4bf9e5d 100644
--- a/src/main/groovy/util/GroovyCollections.java
+++ b/src/main/groovy/util/GroovyCollections.java
@@ -140,7 +140,7 @@ public class GroovyCollections {
      */
     public static List transpose(List lists) {
         List result = new ArrayList();
-        if (lists.isEmpty() || lists.isEmpty()) return result;
+        if (lists.isEmpty()) return result;
         int minSize = Integer.MAX_VALUE;
         for (Object listLike : lists) {
             List list = (List) DefaultTypeTransformation.castToType(listLike, List.class);