From 04b4a8e069aa50fb2511ec71014051b9b4f2c591 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Sat, 18 May 2019 15:49:14 -0700 Subject: [PATCH] Remove redundant operations on LimitedSizeList --- src/main/java/com/gmail/nossr50/datatypes/LimitedSizeList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/datatypes/LimitedSizeList.java b/src/main/java/com/gmail/nossr50/datatypes/LimitedSizeList.java index f03abda99..c969140a7 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/LimitedSizeList.java +++ b/src/main/java/com/gmail/nossr50/datatypes/LimitedSizeList.java @@ -41,7 +41,7 @@ public class LimitedSizeList { public boolean contains(Location targetLoc) { for (Location iter : limitedSizeOrderedList) { if (iter == null) - continue; + return false; if (iter.getX() == targetLoc.getX() && iter.getY() == targetLoc.getY()