From d08faec302fe01a632a78c72eae14c40796a3767 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 21 Jan 2021 19:18:38 +0100 Subject: util.prosodyctl: Remove unused calculation [luacheck] --- util/prosodyctl.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua index f47c54da..f7d9a3cc 100644 --- a/util/prosodyctl.lua +++ b/util/prosodyctl.lua @@ -224,7 +224,7 @@ local function call_luarocks(operation, mod, server) local ok, _, code = os.execute(render_cli("luarocks {op} --tree={dir} {server&--server={server}} {mod?}", { dir = dir; op = operation; mod = mod; server = server; })); - if type(ok) == "number" then ok, code = ok == 0, ok; end + if type(ok) == "number" then code = ok; end return code; end -- cgit v1.2.3