From 4aed0db2843fa2e24b2121fe5c367b4f16be7735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bokros=20B=C3=A1lint?= Date: Sat, 14 May 2016 13:17:24 +0200 Subject: [PATCH] Simplified if statement in isSteppable in Scale --- cicaprojekt/Scale.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cicaprojekt/Scale.java b/cicaprojekt/Scale.java index ca9401d..917a842 100644 --- a/cicaprojekt/Scale.java +++ b/cicaprojekt/Scale.java @@ -17,10 +17,7 @@ public class Scale extends Field { @Override public boolean isSteppable() { - if (boxStack.isEmpty()) - return true; - - return false; + return boxStack.isEmpty(); } @Override