diff options
author | Matthew Wild <mwild1@gmail.com> | 2015-05-06 19:51:07 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2015-05-06 19:51:07 +0100 |
commit | d16104ebd4ea1a5e313367064c6731efb6feed21 (patch) | |
tree | e716a675ab9b54a49bde1fce650725cdf3eb30ee /util/set.lua | |
parent | 13a0eeca1affbd261616ea2ef8d360d71c3e537d (diff) | |
download | prosody-d16104ebd4ea1a5e313367064c6731efb6feed21.tar.gz prosody-d16104ebd4ea1a5e313367064c6731efb6feed21.zip |
util.set: Add luacheck annotation for methods not referencing 'self'
Diffstat (limited to 'util/set.lua')
-rw-r--r-- | util/set.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/set.lua b/util/set.lua index c160d28e..0a263440 100644 --- a/util/set.lua +++ b/util/set.lua @@ -66,6 +66,9 @@ function new(list) local items = setmetatable({}, items_mt); local set = { _items = items }; + -- We access the set through an upvalue in these methods, so ignore 'self' being unused + --luacheck: ignore 212/self + function set:add(item) items[item] = true; end |