Changeset

9323:3259653512e7

util.cache tests: Add annotation to fix [luacheck] warning
author Matthew Wild <mwild1@gmail.com>
date Mon, 17 Sep 2018 15:25:47 +0100
parents 9322:4ce972d77c53
children 9324:607b262da853
files spec/util_cache_spec.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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