Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DataStore/DataStore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ function addon:DeleteRealm(realm, account)
end

local function WipeCharacterTable(t)
if not t then return end
if type(t) ~= "table" then return end

for key, v in pairs(t) do -- key is the character key
if key ~= addon.ThisCharKey then -- only delete an entry if it is not the current character
Expand All @@ -406,7 +406,7 @@ local function WipeCharacterTable(t)
end

local function WipeGuildTable(t)
if not t then return end
if type(t) ~= "table" then return end

for key, v in pairs(t) do -- key is the guild key
t[key] = nil
Expand Down