mirror of
https://github.com/vrld/hump.git
synced 2024-11-23 12:24:19 +00:00
Fixed include helper skipping falsy values.
This commit is contained in:
parent
672a91b56c
commit
dbf60e3dc5
@ -36,7 +36,7 @@ local function include_helper(to, from, seen)
|
|||||||
seen[from] = to
|
seen[from] = to
|
||||||
for k,v in pairs(from) do
|
for k,v in pairs(from) do
|
||||||
k = include_helper({}, k, seen) -- keys might also be tables
|
k = include_helper({}, k, seen) -- keys might also be tables
|
||||||
if not to[k] then
|
if to[k] == nil then
|
||||||
to[k] = include_helper({}, v, seen)
|
to[k] = include_helper({}, v, seen)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user