util.cache tests: Add annotation to fix [luacheck] warning
authorMatthew Wild <mwild1@gmail.com>
Mon, 17 Sep 2018 15:25:47 +0100
changeset 9326 3259653512e7
parent 9325 4ce972d77c53
child 9327 607b262da853
util.cache tests: Add annotation to fix [luacheck] warning
spec/util_cache_spec.lua
--- a/spec/util_cache_spec.lua	Mon Sep 17 15:18:54 2018 +0100
+++ b/spec/util_cache_spec.lua	Mon Sep 17 15:25:47 2018 +0100
@@ -288,7 +288,7 @@
 			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