diff spec/util_json_spec.lua @ 9326:c9c4b8bc53b1

util.json tests: Add [luacheck] annotation to mark intentionally-empty if branch
author Matthew Wild <mwild1@gmail.com>
date Mon, 17 Sep 2018 15:28:53 +0100
parents a6188f5d5bb5
children d78c5c9b0cf6
line wrap: on
line diff
--- a/spec/util_json_spec.lua	Mon Sep 17 15:27:01 2018 +0100
+++ b/spec/util_json_spec.lua	Mon Sep 17 15:28:53 2018 +0100
@@ -42,7 +42,7 @@
 					local f = assert(io.open(path.."/"..name));
 					local content = assert(f:read("*a"));
 					assert(f:close());
-					if skip:find(name) then
+					if skip:find(name) then --luacheck: ignore 542
 						-- Skip
 					elseif name:match("^pass") then
 						valid_data[name] = content;