Skip to content

Commit

Permalink
🧹
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Nov 28, 2024
1 parent 37ab14e commit cd81cd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ read_globals = {
'UIParentLoadAddOn',
'nop',


-- FrameXML constants
'DEFAULT_CHAT_FRAME',

Expand All @@ -76,5 +75,6 @@ read_globals = {
'InCombatLockdown',
'UnitExists',
'UnitGUID',
'UnitName',
'debugstack',
}
2 changes: 1 addition & 1 deletion modules/event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function eventMixin:UnregisterAllEvents(callback)
assert(type(callback) == 'function', 'arg1 must be a function')

for event, cbs in next, callbacks do
for index, data in next, cbs do
for _, data in next, cbs do
if data.owner == self and data.callback == callback then
self:UnregisterEvent(event, callback)
end
Expand Down

0 comments on commit cd81cd6

Please sign in to comment.