diff options
author | Kim Alvefur <zash@zash.se> | 2016-03-07 12:15:39 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-03-07 12:15:39 +0100 |
commit | dea5da6574310f837ecdb68767c2806c0d983ed2 (patch) | |
tree | a668444986b063faa11e954bc694c6fcc3558298 /prosodyctl | |
parent | 58a7a62a8e10e4e9c0f9f2504af4bdfcc190470c (diff) | |
download | prosody-dea5da6574310f837ecdb68767c2806c0d983ed2.tar.gz prosody-dea5da6574310f837ecdb68767c2806c0d983ed2.zip |
prosodyctl: Use already sorted array of module names [luacheck]
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(""); |