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 | 413055c14de0e708abfc4034c0f36fc6e25ae344 (patch) | |
tree | a668444986b063faa11e954bc694c6fcc3558298 | |
parent | 1a1d74a1b2c5d852b5b67a916a85068d6c9775b8 (diff) | |
download | prosody-413055c14de0e708abfc4034c0f36fc6e25ae344.tar.gz prosody-413055c14de0e708abfc4034c0f36fc6e25ae344.zip |
prosodyctl: Use already sorted array of module names [luacheck]
-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(""); |