Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Sep 9, 2024
1 parent f9e7494 commit 0eb3f5f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ read_globals = {
-- FrameXML objects
'AreaPOIDataProviderMixin',
'AreaPOIEventDataProviderMixin',
'Menu',
'MinimalSliderWithSteppersMixin',
'WorldMap_WorldQuestDataProviderMixin',
'WorldMap_WorldQuestPinMixin',
'WorldMapFrame',
Expand All @@ -42,6 +44,7 @@ read_globals = {
'ALT_KEY',
'CTRL_KEY',
'SHIFT_KEY',
'HEADER_COLON',

-- namespaces
'C_AreaPoiInfo',
Expand Down
5 changes: 1 addition & 4 deletions events.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
local _, addon = ...

local showAzeroth, showEvents
addon:RegisterOptionCallback('showAzeroth', function(value)
showAzeroth = value
end)
local showEvents
addon:RegisterOptionCallback('showEvents', function(value)
showEvents = value
end)
Expand Down
5 changes: 0 additions & 5 deletions poi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ local _, addon = ...

local SPECIAL_ASSIGNMENT_WIDGET_SET = 1108

local showAzeroth
addon:RegisterOptionCallback('showAzeroth', function(value)
showAzeroth = value
end)

local provider = CreateFromMixins(AreaPOIDataProviderMixin)
function provider:GetPinTemplate()
return 'BetterWorldQuestPOITemplate'
Expand Down
2 changes: 1 addition & 1 deletion settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ local function createSlider(root, name, getter, setter, minValue, maxValue, step
end

-- inject some of the settings into the tracking menu
Menu.ModifyMenu('MENU_WORLD_MAP_TRACKING', function(_, root, data)
Menu.ModifyMenu('MENU_WORLD_MAP_TRACKING', function(_, root)
root:CreateDivider()
root:CreateTitle((addonName:gsub('(%l)(%u)', '%1 %2')) .. HEADER_COLON)

Expand Down

0 comments on commit 0eb3f5f

Please sign in to comment.