Skip to content

Commit

Permalink
Fix the filter helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
caiohsr14 committed Nov 29, 2018
1 parent 3c3a5db commit 3ea88b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Themes/_fallback/Scripts/01 Functional.lua
Expand Up @@ -22,7 +22,7 @@ function filter(func, tbl)
local newtbl = {}
for i, v in pairs(tbl) do
if func(v) then
newtbl[i] = v
newtbl[#newtbl+1] = v
end
end
return newtbl
Expand Down

0 comments on commit 3ea88b2

Please sign in to comment.