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
commit413055c14de0e708abfc4034c0f36fc6e25ae344 (patch)
treea668444986b063faa11e954bc694c6fcc3558298
parent1a1d74a1b2c5d852b5b67a916a85068d6c9775b8 (diff)
downloadprosody-413055c14de0e708abfc4034c0f36fc6e25ae344.tar.gz
prosody-413055c14de0e708abfc4034c0f36fc6e25ae344.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("");