diff options
author | Kim Alvefur <zash@zash.se> | 2021-01-21 19:18:38 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-01-21 19:18:38 +0100 |
commit | d08faec302fe01a632a78c72eae14c40796a3767 (patch) | |
tree | f47b2ad083a7c5c52b698b6d03c9620cf3ad1d9d | |
parent | ece1e74b938d6529103edacbdbc51f8ce62fd6f9 (diff) | |
download | prosody-d08faec302fe01a632a78c72eae14c40796a3767.tar.gz prosody-d08faec302fe01a632a78c72eae14c40796a3767.zip |
util.prosodyctl: Remove unused calculation [luacheck]
-rw-r--r-- | util/prosodyctl.lua | 2 |
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 |