[Tarantool-patches] [PATCH v8 01/14] test: fix luacheck warnings in test/sql
sergeyb at tarantool.org
sergeyb at tarantool.org
Thu Jan 21 15:49:53 MSK 2021
From: Sergey Bronnikov <sergeyb at tarantool.org>
Closes #5463
Reviewed-by: Vladislav Shpilevoy <v.shpilevoy at tarantool.org>
Reviewed-by: Igor Munkin <imun at tarantool.org>
---
.luacheckrc | 2 +-
test/sql/lua/sql_tokenizer.lua | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.luacheckrc b/.luacheckrc
index b427f6475..81aa61a2b 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -38,7 +38,7 @@ exclude_files = {
"test/luajit-tap/**/*.lua",
"test/replication/**/*.lua",
"test/replication-py/**/*.lua",
- "test/sql/**/*.lua",
+ "test/sql/*.test.lua",
"test/swim/**/*.lua",
"test/var/**/*.lua",
"test/vinyl/*.test.lua",
diff --git a/test/sql/lua/sql_tokenizer.lua b/test/sql/lua/sql_tokenizer.lua
index 9922d792d..ffe4fb4e8 100644
--- a/test/sql/lua/sql_tokenizer.lua
+++ b/test/sql/lua/sql_tokenizer.lua
@@ -134,7 +134,7 @@ end
-- @retval Token type. If the rest of the SQL request consists of
-- spaces and comments, then return TK_EMPTY.
local function get_next_token(context)
- local c = ''
+ local c
repeat
local i = context.offset
c = context.sql:sub(i, i)
--
2.25.1
More information about the Tarantool-patches
mailing list