# HG changeset patch # User Kim Alvefur # Date 1611253118 -3600 # Node ID abe8cd8fad142ff7b30052c2434efc30a8bcb525 # Parent 79466cc86041bc549f3468d37688e990fe5157fb util.prosodyctl: Remove unused calculation [luacheck] diff -r 79466cc86041 -r abe8cd8fad14 util/prosodyctl.lua --- 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