aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-01-21 19:18:38 +0100
committerKim Alvefur <zash@zash.se>2021-01-21 19:18:38 +0100
commit57a971534d4c1da1c166e21024038f2ca8459746 (patch)
treef47b2ad083a7c5c52b698b6d03c9620cf3ad1d9d /util
parent7665c764b5cabd73798b89c50507767155df64e0 (diff)
downloadprosody-57a971534d4c1da1c166e21024038f2ca8459746.tar.gz
prosody-57a971534d4c1da1c166e21024038f2ca8459746.zip
util.prosodyctl: Remove unused calculation [luacheck]
Diffstat (limited to 'util')
-rw-r--r--util/prosodyctl.lua2
1 files changed, 1 insertions, 1 deletions
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