Software /
code /
prosody
Diff
util/prosodyctl.lua @ 11299:abe8cd8fad14
util.prosodyctl: Remove unused calculation [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 21 Jan 2021 19:18:38 +0100 |
parent | 11298:79466cc86041 |
child | 11490:34d4e4a01ef8 |
line wrap: on
line diff
--- a/util/prosodyctl.lua Thu Jan 21 19:17:31 2021 +0100 +++ b/util/prosodyctl.lua Thu Jan 21 19:18:38 2021 +0100 @@ -224,7 +224,7 @@ 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