From 65bf7a0b98e6a8bd9d0eab5d354c6dbdc82cec0b Mon Sep 17 00:00:00 2001 From: hbomb79 Date: Sat, 23 Apr 2016 12:01:37 +1200 Subject: [PATCH] Shortened isBuilding check An unnecessary 'and true' was removed from the return statement. --- src/scripts/Class.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/Class.lua b/src/scripts/Class.lua index 2002d1a..b869b2b 100755 --- a/src/scripts/Class.lua +++ b/src/scripts/Class.lua @@ -49,7 +49,7 @@ end local function isBuilding() if current or currentReg then - return ( current and currentReg and true ) or throw("A class registry error has occured") + return ( current and currentReg ) or throw("A class registry error has occured") end return false end