Return logic directly instead of using conditional

(fixes #4)
This commit is contained in:
Andrew Tomaka 2021-01-13 22:36:28 -05:00
parent 3e2f6d5ff7
commit ee9db0510b
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE

View file

@ -135,11 +135,7 @@ function MyAddon.amTankInParty()
local isTank = UnitGroupRolesAssigned("player") == "TANK" local isTank = UnitGroupRolesAssigned("player") == "TANK"
local notAlreadyMarked = GetRaidTargetIndex("player") == nil local notAlreadyMarked = GetRaidTargetIndex("player") == nil
if (isParty and isTank and notAlreadyMarked) then return isParty and isTank and notAlreadyMarked
return true
else
return false
end
end end
function MyAddon.markSelfSquare() function MyAddon.markSelfSquare()