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 | 57a971534d4c1da1c166e21024038f2ca8459746 (patch) | |
tree | f47b2ad083a7c5c52b698b6d03c9620cf3ad1d9d /util | |
parent | 7665c764b5cabd73798b89c50507767155df64e0 (diff) | |
download | prosody-57a971534d4c1da1c166e21024038f2ca8459746.tar.gz prosody-57a971534d4c1da1c166e21024038f2ca8459746.zip |
util.prosodyctl: Remove unused calculation [luacheck]
Diffstat (limited to 'util')
-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 |