Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed May 1, 2024
1 parent fece010 commit f3bb682
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ globals = {
"LibStub",

-- WoW (general API)
"C_AddOns",
"C_AreaPoiInfo",
"C_ChatInfo",
"C_CurrencyInfo",
Expand All @@ -30,7 +31,6 @@ globals = {
"CombatLogGetCurrentEventInfo",
"CompleteQuest",
"CreateFrame",
"EnableAddOn",
"GetBattlefieldEstimatedWaitTime",
"GetBattlefieldPortExpiration",
"GetBattlefieldStatus",
Expand All @@ -51,7 +51,6 @@ globals = {
"IsInGroup",
"IsQuestCompletable",
"IsShiftKeyDown",
"LoadAddOn",
"PlaySound",
"RaidNotice_AddMessage",
"RaidWarningFrame_OnEvent",
Expand Down
4 changes: 2 additions & 2 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -916,8 +916,8 @@ do
db.profile.position[4] = d
end)
local function openOpts()
EnableAddOn("Capping_Options") -- Make sure it wasn't left disabled for whatever reason
LoadAddOn("Capping_Options")
C_AddOns.EnableAddOn("Capping_Options") -- Make sure it wasn't left disabled for whatever reason
C_AddOns.LoadAddOn("Capping_Options")
LibStub("AceConfigDialog-3.0"):Open(addonName)
end
SlashCmdList.Capping = openOpts
Expand Down
4 changes: 2 additions & 2 deletions Core_BCC.lua
Original file line number Diff line number Diff line change
Expand Up @@ -991,8 +991,8 @@ do
db.profile.position[4] = d
end)
local function openOpts()
EnableAddOn("Capping_Options") -- Make sure it wasn't left disabled for whatever reason
LoadAddOn("Capping_Options")
C_AddOns.EnableAddOn("Capping_Options") -- Make sure it wasn't left disabled for whatever reason
C_AddOns.LoadAddOn("Capping_Options")
LibStub("AceConfigDialog-3.0"):Open(addonName)
end
SlashCmdList.Capping = openOpts
Expand Down
4 changes: 2 additions & 2 deletions Core_Vanilla.lua
Original file line number Diff line number Diff line change
Expand Up @@ -985,8 +985,8 @@ do
db.profile.position[4] = d
end)
local function openOpts()
EnableAddOn("Capping_Options") -- Make sure it wasn't left disabled for whatever reason
LoadAddOn("Capping_Options")
C_AddOns.EnableAddOn("Capping_Options") -- Make sure it wasn't left disabled for whatever reason
C_AddOns.LoadAddOn("Capping_Options")
LibStub("AceConfigDialog-3.0"):Open(addonName)
end
SlashCmdList.Capping = openOpts
Expand Down
4 changes: 2 additions & 2 deletions Core_Wrath.lua
Original file line number Diff line number Diff line change
Expand Up @@ -991,8 +991,8 @@ do
db.profile.position[4] = d
end)
local function openOpts()
EnableAddOn("Capping_Options") -- Make sure it wasn't left disabled for whatever reason
LoadAddOn("Capping_Options")
C_AddOns.EnableAddOn("Capping_Options") -- Make sure it wasn't left disabled for whatever reason
C_AddOns.LoadAddOn("Capping_Options")
LibStub("AceConfigDialog-3.0"):Open(addonName)
end
SlashCmdList.Capping = openOpts
Expand Down

0 comments on commit f3bb682

Please sign in to comment.