aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-03-07 12:15:39 +0100
committerKim Alvefur <zash@zash.se>2016-03-07 12:15:39 +0100
commitdea5da6574310f837ecdb68767c2806c0d983ed2 (patch)
treea668444986b063faa11e954bc694c6fcc3558298
parent58a7a62a8e10e4e9c0f9f2504af4bdfcc190470c (diff)
downloadprosody-dea5da6574310f837ecdb68767c2806c0d983ed2.tar.gz
prosody-dea5da6574310f837ecdb68767c2806c0d983ed2.zip
prosodyctl: Use already sorted array of module names [luacheck]
-rwxr-xr-xprosodyctl2
1 files changed, 1 insertions, 1 deletions
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("");