prosodyctl: Use already sorted array of module names [luacheck]

This commit is contained in:
Kim Alvefur 2016-03-07 12:15:39 +01:00
parent 1a1d74a1b2
commit 413055c14d

View file

@ -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("");