Software /
code /
prosody
Diff
util/set.lua @ 6675:cb5b56ddabfd
util.set: Rename method argument to avoid name clash [luacheck]
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 06 May 2015 19:51:35 +0100 |
parent | 6674:a0ce52e11122 |
child | 6777:5de6b93d0190 |
line wrap: on
line diff
--- 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