refactor(common/modules/table): small refactor

This commit is contained in:
Thekuca
2023-05-19 15:19:00 +02:00
committed by GitHub
parent ff3ee5843e
commit bb526ea0bc
+1 -2
View File
@@ -119,12 +119,11 @@ function ESX.Table.Concat(t1, t2)
end
function ESX.Table.Join(t, sep)
local sep = sep or ','
local str = ''
for i = 1, #t, 1 do
if i > 1 then
str = str .. sep
str = str .. (sep or ',')
end
str = str .. t[i]