aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/set.lua3
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