# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1666280227 -7200
# Node ID 123d74bf60e38c0376bceca5676e7c7511dc3424
# Parent  3b9de8dd71a36465374466a4a9ac160e9709ec00
util.prosodyctl: Remove Lua 5.1 os.execute() return value compat

diff -r 3b9de8dd71a3 -r 123d74bf60e3 util/prosodyctl.lua
--- a/util/prosodyctl.lua	Thu Oct 20 17:36:05 2022 +0200
+++ b/util/prosodyctl.lua	Thu Oct 20 17:37:07 2022 +0200
@@ -224,8 +224,7 @@
 	local ok, _, code = os.execute(render_cli("luarocks --lua-version={luav} {op} --tree={dir} {server&--server={server}} {mod?}", {
 				dir = dir; op = operation; mod = mod; server = server; luav = _VERSION:match("5%.%d");
 		}));
-	if type(ok) == "number" then code = ok; end
-	return code;
+	return ok and code;
 end
 
 return {