Verified Commit 44d32225 authored by Repooc's avatar Repooc
Browse files

quick cleanup

parent d3981353
local SLE, T, E, L, V, P, G = unpack(select(2, ...)) local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local DB = SLE:GetModule("DataBars") local DB = SLE:GetModule('DataBars')
local EDB = E:GetModule('DataBars') local EDB = E:GetModule('DataBars')
--Cache global variables --Cache global variables
...@@ -13,7 +13,7 @@ local C_AzeriteItem_FindActiveAzeriteItem = C_AzeriteItem.FindActiveAzeriteItem ...@@ -13,7 +13,7 @@ local C_AzeriteItem_FindActiveAzeriteItem = C_AzeriteItem.FindActiveAzeriteItem
local function AzeriteBar_Update(self, event, unit) local function AzeriteBar_Update(self, event, unit)
if not E.db.sle.databars.azerite.longtext then return end if not E.db.sle.databars.azerite.longtext then return end
if (event == "UNIT_INVENTORY_CHANGED" and unit ~= "player") then if (event == 'UNIT_INVENTORY_CHANGED' and unit ~= 'player') then
return return
end end
...@@ -48,5 +48,5 @@ end ...@@ -48,5 +48,5 @@ end
function DB:AzeriteInit() function DB:AzeriteInit()
-- DB:PopulateExpPatterns() -- DB:PopulateExpPatterns()
hooksecurefunc(EDB, "AzeriteBar_Update", AzeriteBar_Update) hooksecurefunc(EDB, 'AzeriteBar_Update', AzeriteBar_Update)
end end
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment