[Tarantool-patches] [PATCH 4/6] Fix luacheck warnings in extra/dist/tarantoolctl.in
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Wed Apr 15 02:30:20 MSK 2020
Thanks for the patch!
Consider more fixes below and on the branch in a separate commit.
That allowed to remove some warning mutes from the luacheck
config.
====================
Review fixes: tarantoolctl.in
diff --git a/extra/dist/tarantoolctl.in b/extra/dist/tarantoolctl.in
index d7f098735..b8e8d0632 100755
--- a/extra/dist/tarantoolctl.in
+++ b/extra/dist/tarantoolctl.in
@@ -132,7 +132,8 @@ local function load_default_file(default_file)
log.error("Failed to load defaults file: %s", msg)
end
debug.setfenv(ufunc, env)
- local state, msg = pcall(ufunc)
+ local state
+ state, msg = pcall(ufunc)
if not state then
log.error('Failed to execute defaults file: %s', msg)
end
More information about the Tarantool-patches
mailing list