From c3cd13d3411bc3a08448b702b226f6a68e7b4505 Mon Sep 17 00:00:00 2001 From: Pinya <800pin.ru@gmail.com> Date: Sat, 16 Dec 2017 20:52:42 +0300 Subject: [PATCH] cleanup --- !Compatibility/api/wowAPI.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/!Compatibility/api/wowAPI.lua b/!Compatibility/api/wowAPI.lua index 171fd0c..2900473 100644 --- a/!Compatibility/api/wowAPI.lua +++ b/!Compatibility/api/wowAPI.lua @@ -233,11 +233,7 @@ function GetCurrentMapAreaID() if not IsInInstance() then return end local zoneName = GetRealZoneText() - if zoneName ~= "" and zoneInfo[zoneName] then - return zoneInfo[zoneName].mapID - else - return 0 - end + return zoneInfo[zoneName] and zoneInfo[zoneName].mapID or 0 end function GetMapNameByID(id) @@ -345,7 +341,6 @@ function GetThreatStatus(currentThreat, maxThreat) assert(type(currentThreat) == "number" and type(maxThreat) == "number", "Usage: GetThreatStatus(currentThreat, maxThreat)") if not maxThreat or maxThreat == 0 then - maxThreat = 0 maxThreat = 1 end