projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96fb5b9
)
prosodyctl: Use already sorted array of module names [luacheck]
author
Kim Alvefur
<zash@zash.se>
Mon, 7 Mar 2016 11:15:39 +0000
(12:15 +0100)
committer
Kim Alvefur
<zash@zash.se>
Mon, 7 Mar 2016 11:15:39 +0000
(12:15 +0100)
prosodyctl
patch
|
blob
|
history
diff --git
a/prosodyctl
b/prosodyctl
index f58c3abc9c10ff12f9d0bff3d3a154e173598d83..4effb887d29794e5002fc0b2dc561a62f94a0a11 100755
(executable)
--- 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("");