Remove the fucking linter warnings

This commit is contained in:
2025-01-01 14:36:27 +01:00
parent ed7c1a4685
commit 8c45e90ce1
6 changed files with 16 additions and 10 deletions

View File

@@ -1,11 +1,11 @@
local addonname, data = ...
---@cast data HeimdallData
local addonname, shared = ...
---@cast shared HeimdallShared
---@cast addonname string
if not data.dumpTable then
if not shared.dumpTable then
---@param table table
---@param depth number?
data.dumpTable = function(table, depth)
shared.dumpTable = function(table, depth)
if not table then
print(tostring(table))
return
@@ -20,7 +20,7 @@ if not data.dumpTable then
for k, v in pairs(table) do
if (type(v) == "table") then
print(string.rep(" ", depth) .. k .. ":")
data.dumpTable(v, depth + 1)
shared.dumpTable(v, depth + 1)
else
print(string.rep(" ", depth) .. k .. ": ", v)
end