[modified] minor refactor of how tablex.clear is or isn't initialised as needed

This commit is contained in:
Max Cahill 2021-05-04 10:38:31 +10:00
parent c2a9d39bcf
commit bc7754ae0b

View File

@ -247,10 +247,7 @@ function tablex.dedupe(t)
end
--(might already exist depending on luajit)
if table.clear then
--import from global if it exists
tablex.clear = table.clear
else
if not tablex.clear then
--remove all values from a table
--useful when multiple references are being held
--so you cannot just create a new table