I forgot about "t[x] or default"

This commit is contained in:
Xertis
2025-02-04 20:09:36 +03:00
parent e106a31d82
commit 0d32b1987c
2 changed files with 0 additions and 14 deletions
-8
View File
@@ -169,14 +169,6 @@ function table.set_default(t, key, default)
return t[key]
end
function table.get_default(t, key, default)
if t[key] == nil then
return default
end
return t[key]
end
function table.flat(t)
local flat = {}