JAL-3210 Barebones gradle/buildship/eclipse. See README
[jalview.git] / src / jalview / renderer / ResidueColourFinder.java
index 2e45117..2da7233 100644 (file)
@@ -116,13 +116,12 @@ public class ResidueColourFinder
   public SequenceGroup getCurrentSequenceGroup(SequenceGroup[] allGroups,
           int res)
   {
-    int n;
-    if (allGroups == null || (n = allGroups.length) == 0)
+    if (allGroups == null)
     {
       return null;
     }
 
-    for (int i = 0; i < n; i++)
+    for (int i = 0; i < allGroups.length; i++)
     {
       if ((allGroups[i].getStartRes() <= res)
               && (allGroups[i].getEndRes() >= res))