[inspect] fix inserting to table

This commit is contained in:
Ben 2024-06-04 01:10:59 +02:00
parent 9d58bcb79f
commit d2f43ea1a7
Signed by: ben
GPG key ID: 1353F41CF1CFF2D3

View file

@ -21,8 +21,8 @@ end
local function prepareObject(other)
assert(type(other) == "table", "object has to be a table")
local keys = {}
for key, _ in pairs(other) do
keys.insert(key)
for k, _ in pairs(other) do
table.insert(keys, k)
end
table.sort(keys)
return other, keys