Skip to content

Commit

Permalink
test: fix luacheck warnings W231 in test/sql-tap
Browse files Browse the repository at this point in the history
W231 (Local variable is set but never accessed)

Part of #5464
  • Loading branch information
ligurio authored and kyukhin committed Mar 2, 2021
1 parent 0843b24 commit 1952d7b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .luacheckrc
Expand Up @@ -49,8 +49,6 @@ exclude_files = {

files["test/sql-tap/**/*.lua"] = {
ignore = {
-- Local variable is set but never accessed.
"231",
-- "Value assigned to a local variable is unused."
"311",
-- Unreachable code.
Expand Down
2 changes: 1 addition & 1 deletion test/sql-tap/e_expr.test.lua
Expand Up @@ -2511,7 +2511,7 @@ test:do_execsql_test(
-- </e_expr-20.2>
})

local a, b, c
local a, b, c -- luacheck: ignore unused a b c
a = 0
b = 0
c = 0
Expand Down
2 changes: 1 addition & 1 deletion test/sql-tap/func.test.lua
Expand Up @@ -1360,7 +1360,7 @@ test:do_execsql_test(
-- </13.8.3>
})

local V = "one"
local V = "one" -- luacheck: ignore
test:do_execsql_test(
"13.8.4",
[[
Expand Down

0 comments on commit 1952d7b

Please sign in to comment.