mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 15:23:48 +01:00
Apply luk3yx's code quality suggestion
This commit is contained in:
parent
e212ba7f3b
commit
0c47e04347
@ -497,11 +497,7 @@ function set(table)
|
||||
end
|
||||
|
||||
function unique(table)
|
||||
local lookup = {}
|
||||
for _, value in pairs(table) do
|
||||
lookup[value] = true
|
||||
end
|
||||
return keys(lookup)
|
||||
return keys(set(table))
|
||||
end
|
||||
|
||||
function rpairs(table)
|
||||
|
Loading…
Reference in New Issue
Block a user