Skip to content

Commit

Permalink
Adjusted some comments and minor codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
DJSchaffner committed Jan 11, 2025
1 parent c741593 commit 3a30519
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local customCategories = {}

local function printChat(message)
if debug == true then
print("[BetterBags ItemRack] ".. tostring(message))
print("[BetterBags ItemRack] " .. tostring(message))
end
end

Expand All @@ -33,7 +33,7 @@ local function split(s, sep)
end

local function updateCategories()
-- Wipe custom categories since we can't retrieve deleted set from itemRack (Except maybe store duplicate of sets and check last version of it)
-- Wipe custom categories since we can't retrieve deleted set from ItemRack (Except maybe store duplicate of sets and check last version of it)
for category, _ in pairs(customCategories) do
local ctx = context:New("BetterBags_ItemRack_Deletion")
categories:DeleteCategory(ctx, L:G(category))
Expand Down Expand Up @@ -61,7 +61,7 @@ local function updateCategories()

if itemSets == nil then
usedItems[id] = { setName }
-- Extend existing labels and filter duplicate items per set
-- Extend existing labels and filter duplicate items per set
elseif usedItems[id][setName] ~= nil then
table.insert(usedItems[id], setName)
end
Expand Down Expand Up @@ -122,7 +122,7 @@ end

frame:RegisterEvent("ADDON_LOADED")
frame:SetScript("OnEvent", function(self, event, addon, ...)
-- Listen for this because we need the saved variable to operate
-- Technically since we don't use saved variables anymore waiting here isn't necessary, but doesn't hurt
if event == "ADDON_LOADED" and addon == "BetterBags_ItemRack" then
ItemRack:RegisterExternalEventListener("ITEMRACK_SET_SAVED", itemRackUpdated)
ItemRack:RegisterExternalEventListener("ITEMRACK_SET_DELETED", itemRackUpdated)
Expand Down

0 comments on commit 3a30519

Please sign in to comment.