Skip to content

Commit 38c5b56

Browse files
committed
refactor: local variables
1 parent b4f0034 commit 38c5b56

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Modules/Skins/Core.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@ local S = W.Modules.Skins ---@class Skins
44
local ES = E.Skins
55

66
local _G = _G
7+
local assert = assert
78
local format = format
89
local hooksecurefunc = hooksecurefunc
10+
local ipairs = ipairs
911
local next = next
1012
local pairs = pairs
13+
local strmatch = strmatch
1114
local tinsert = tinsert
15+
local tonumber = tonumber
1216
local tostring = tostring
1317
local type = type
1418
local xpcall = xpcall
15-
local tonumber = tonumber
16-
local strmatch = strmatch
1719

1820
local CreateFrame = CreateFrame
1921
local GenerateClosure = GenerateClosure
@@ -337,7 +339,7 @@ function S:HandleAceGUIWidget(lib, name, constructor)
337339
end
338340

339341
function S:ProcessWaitingAceGUIWidgets()
340-
local lib = LibStub:GetLibrary("AceGUI-3.0", true)
342+
local lib = _G.LibStub:GetLibrary("AceGUI-3.0", true)
341343
assert(lib, "ProcessWaitingAceWidgets: AceGUI-3.0 not found")
342344

343345
for name, widgets in pairs(self.aceWidgetWaitingList) do

Modules/Skins/ElvUI/LootRoll.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ local S = W.Modules.Skins ---@type Skins
44

55
local _G = _G
66
local pairs = pairs
7+
local hooksecurefunc = hooksecurefunc
78

89
function S:ElvUI_SkinLootRollFrame(frame)
910
if not frame or frame:IsForbidden() or frame.__windSkin then

Modules/Tooltips/Icons.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ local strfind = strfind
99
local tContains = tContains
1010
local tInsertUnique = tInsertUnique
1111
local tonumber = tonumber
12+
local tostring = tostring
1213
local unpack = unpack
1314

1415
local GetAchievementInfo = GetAchievementInfo

0 commit comments

Comments
 (0)