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/bc6cc58b
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/bc6cc58b
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/bc6cc58b

Branch: refs/heads/master
Commit: bc6cc58b90513c024bda331407ccb14bbd7621c8
Parents: 9221c51
Author: John Wagenleitner <[email protected]>
Authored: Thu Aug 4 22:01:31 2016 -0700
Committer: John Wagenleitner <[email protected]>
Committed: Thu Aug 4 22:01:31 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/bc6cc58b/src/main/groovy/util/GroovyCollections.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/util/GroovyCollections.java 
b/src/main/groovy/util/GroovyCollections.java
index 86b9ca2..8a409f7 100644
--- a/src/main/groovy/util/GroovyCollections.java
+++ b/src/main/groovy/util/GroovyCollections.java
@@ -160,7 +160,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);

Reply via email to