Skip to content

Commit d838838

Browse files
committed
refactor: use local vars
1 parent 859671e commit d838838

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Modules/Combat/RaidMarkers.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ local abs = abs
1010
local format = format
1111
local gsub = gsub
1212
local strupper = strupper
13+
local strlower = strlower
1314

1415
local CreateFrame = CreateFrame
1516
local InCombatLockdown = InCombatLockdown

Modules/Item/Inspect.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ local UnitLevel = UnitLevel
4545
local UnitName = UnitName
4646

4747
local C_AddOns_IsAddOnLoaded = C_AddOns.IsAddOnLoaded
48+
local C_Item_GetCurrentItemLevel = C_Item.GetCurrentItemLevel
4849
local C_Item_GetDetailedItemLevelInfo = C_Item.GetDetailedItemLevelInfo
4950
local C_Item_GetItemGem = C_Item.GetItemGem
5051
local C_Item_GetItemInfo = C_Item.GetItemInfo
@@ -539,7 +540,7 @@ local function GetUnitSlotItemInfo(unit, slotIndex)
539540
C_Item_GetItemInfo(link)
540541

541542
local itemLocation = ItemLocation:CreateFromEquipmentSlot(slotIndex) --[[@as ItemLocation]]
542-
local actualItemLevel = C_Item.GetCurrentItemLevel(itemLocation)
543+
local actualItemLevel = C_Item_GetCurrentItemLevel(itemLocation)
543544
if not actualItemLevel or actualItemLevel <= 0 then
544545
actualItemLevel = C_Item_GetDetailedItemLevelInfo(link)
545546
end

0 commit comments

Comments
 (0)