Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit d142d8d

Browse files
authored
fix(table): respect falsey value for addDuplicateNumbers (#672)
1 parent 2b10e77 commit d142d8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imports/table/shared.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ end
8585
---@return table
8686
---Merges two tables together. Defaults to adding duplicate keys together if they are numbers, otherwise they are overriden.
8787
local function table_merge(t1, t2, addDuplicateNumbers)
88-
addDuplicateNumbers = addDuplicateNumbers ~= nil and addDuplicateNumbers or true
88+
addDuplicateNumbers = addDuplicateNumbers == nil or addDuplicateNumbers
8989
for k, v2 in pairs(t2) do
9090
local v1 = t1[k]
9191
local type1 = type(v1)

0 commit comments

Comments
 (0)