aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_cache_spec.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-09-17 15:25:47 +0100
committerMatthew Wild <mwild1@gmail.com>2018-09-17 15:25:47 +0100
commitf94bc33782a3ff2db5f0d68c6f13e83fe0fb34c4 (patch)
tree0a1f9f0723b6917a9d556fcb481d1e9cf58958f1 /spec/util_cache_spec.lua
parent521d25b79ecb32732cdd9d1a0808453e0bfd965d (diff)
downloadprosody-f94bc33782a3ff2db5f0d68c6f13e83fe0fb34c4.tar.gz
prosody-f94bc33782a3ff2db5f0d68c6f13e83fe0fb34c4.zip
util.cache tests: Add annotation to fix [luacheck] warning
Diffstat (limited to 'spec/util_cache_spec.lua')
-rw-r--r--spec/util_cache_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/util_cache_spec.lua b/spec/util_cache_spec.lua
index 9c7d75fe..15e86ee9 100644
--- a/spec/util_cache_spec.lua
+++ b/spec/util_cache_spec.lua
@@ -288,7 +288,7 @@ describe("util.cache", function()
expect_kv("c", 3, c4:head());
expect_kv("a", 1, c4:tail());
- local c5 = cache.new(3, function (k, v)
+ local c5 = cache.new(3, function (k, v) --luacheck: ignore 212/v
if k == "a" then
return nil;
elseif k == "b" then