Changeset

7250:6ffc9247417a

prosodyctl: Use already sorted array of module names [luacheck]
author Kim Alvefur <zash@zash.se>
date Mon, 07 Mar 2016 12:15:39 +0100
parents 7249:c49f69bb68f7
children 7251:b74421fe417a 7252:fa0169cc8511
files prosodyctl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/prosodyctl	Mon Mar 07 12:13:22 2016 +0100
+++ b/prosodyctl	Mon Mar 07 12:15:39 2016 +0100
@@ -594,7 +594,7 @@
 		module_versions["libevent"] = luaevent.core.libevent_version();
 	end
 	local sorted_keys = array.collect(keys(module_versions)):sort();
-	for _, name in ipairs(array.collect(keys(module_versions)):sort()) do
+	for _, name in ipairs(sorted_keys) do
 		print(name..":"..string.rep(" ", longest_name-#name), module_versions[name]);
 	end
 	print("");