Skip to content

Commit

Permalink
LuaCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
doadin committed Jul 25, 2024
1 parent 9812cd0 commit dab2ed5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
All rights reserved. See the accompanying LICENSE file for details.
----------------------------------------------------------------------]]

PLEXUS, Plexus = ...
local PLEXUS, Plexus = ...

local format = format
local strfind = strfind
Expand Down Expand Up @@ -62,7 +62,7 @@ function Plexus:IsRetailWow() --luacheck: ignore 212
return WOW_PROJECT_ID == WOW_PROJECT_MAINLINE
end

Plexus = LibStub:GetLibrary("AceAddon-3.0"):NewAddon(Plexus, PLEXUS, "AceConsole-3.0", "AceEvent-3.0")
_G.Plexus = LibStub:GetLibrary("AceAddon-3.0"):NewAddon(Plexus, PLEXUS, "AceConsole-3.0", "AceEvent-3.0")
if NickTag then
LibStub("NickTag-1.0"):Embed(Plexus)
if not Plexus.nick_tag_cache then
Expand Down
5 changes: 3 additions & 2 deletions Statuses/Stagger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ local wipe = wipe
local UnitClass = UnitClass
local UnitGUID = UnitGUID
local GetAuraDataByAuraInstanceID = C_UnitAuras.GetAuraDataByAuraInstanceID
local ForEachAura = AuraUtil.ForEachAura

local PlexusRoster = Plexus:GetModule("PlexusRoster")
local PlexusStatus = Plexus:GetModule("PlexusStatus")
Expand Down Expand Up @@ -166,7 +167,7 @@ function PlexusStatusStagger:UpdateAllUnits()
end

local unitAuras
function PlexusStatusStagger:UpdateUnit(event, unitid, updatedAuras)
function PlexusStatusStagger:UpdateUnit(_, unitid, updatedAuras) --event, unitid, updatedAuras
local guid = UnitGUID(unitid)
if not unitid then return end
if not guid then return end
Expand All @@ -180,7 +181,7 @@ function PlexusStatusStagger:UpdateUnit(event, unitid, updatedAuras)
-- Full Update
if (updatedAuras and updatedAuras.isFullUpdate) then --or (not updatedAuras.isFullUpdate and (not updatedAuras.addedAuras and not updatedAuras.updatedAuraInstanceIDs and not updatedAuras.removedAuraInstanceIDs)) then
local unitauraInfo = {}
if (AuraUtil.ForEachAura) then
if (ForEachAura) then
--ForEachAura(unitid, "HELPFUL", nil,
-- function(aura)
-- if aura and aura.auraInstanceID then
Expand Down

0 comments on commit dab2ed5

Please sign in to comment.