# HG changeset patch # User Matthew Wild # Date 1430938295 -3600 # Node ID cb5b56ddabfd11e0271ad8b3cb88b551e0af18e4 # Parent a0ce52e11122d161f14279bba4b712f48fa1c3f1 util.set: Rename method argument to avoid name clash [luacheck] diff -r a0ce52e11122 -r cb5b56ddabfd util/set.lua --- a/util/set.lua Wed May 06 19:51:07 2015 +0100 +++ b/util/set.lua Wed May 06 19:51:35 2015 +0100 @@ -85,9 +85,9 @@ items[item] = nil; end - function set:add_list(list) - if list then - for _, item in ipairs(list) do + function set:add_list(item_list) + if item_list then + for _, item in ipairs(item_list) do items[item] = true; end end