From 413055c14de0e708abfc4034c0f36fc6e25ae344 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 7 Mar 2016 12:15:39 +0100 Subject: prosodyctl: Use already sorted array of module names [luacheck] --- prosodyctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prosodyctl') diff --git a/prosodyctl b/prosodyctl index f58c3abc..4effb887 100755 --- a/prosodyctl +++ b/prosodyctl @@ -594,7 +594,7 @@ function commands.about(arg) 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(""); -- cgit v1.2.3