Mercurial > prosody-hg
diff tests/test_util_multitable.lua @ 7511:ef6505962351
test_util_multitable: remove unused one-letter loop variable [luacheck]
| author | Anton Shestakov <av6@dwimlabs.net> |
|---|---|
| date | Sat, 23 Jul 2016 18:21:21 +0800 |
| parents | 8965ad0aed2c |
| children |
line wrap: on
line diff
--- a/tests/test_util_multitable.lua Thu Jul 21 01:23:32 2016 +0800 +++ b/tests/test_util_multitable.lua Sat Jul 23 18:21:21 2016 +0800 @@ -27,7 +27,7 @@ return true, "has-all"; end for n=1,select('#', ...) do should_have[select(n, ...)] = true; end - for n, item in ipairs(list) do + for _, item in ipairs(list) do if not should_have[item] then return false, "too-many"; end should_have[item] = nil; end
