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 notAlreadyMarked = GetRaidTargetIndex("player") == nil
if (isParty and isTank and notAlreadyMarked) then
return true
else
return false
end
return isParty and isTank and notAlreadyMarked
end
function MyAddon.markSelfSquare()