diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-08-29 15:07:00 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-08-29 15:07:00 +0100 |
commit | a69205c3b9c92f091221a9f7c56dd92a0ee6cac0 (patch) | |
tree | 0d106daedab6ac7cf0a26a512f712c1e1b379330 /util/stanza.lua | |
parent | aa509f9fced444535e69471224c1b5df70b31e6f (diff) | |
download | prosody-a69205c3b9c92f091221a9f7c56dd92a0ee6cac0.tar.gz prosody-a69205c3b9c92f091221a9f7c56dd92a0ee6cac0.zip |
util.stanza: Optimisation, remove useless if...then in stanza:children() iterator
Diffstat (limited to 'util/stanza.lua')
-rw-r--r-- | util/stanza.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/stanza.lua b/util/stanza.lua index e787cacf..3ab4bb42 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -122,8 +122,7 @@ function stanza_mt:children() local i = 0; return function (a) i = i + 1 - local v = a[i] - if v then return v; end + return a[i]; end, self, i; end |