Changeset

3475:0307a3ac3885

util.stanza: Optimisation, remove useless if...then in stanza:children() iterator
author Matthew Wild <mwild1@gmail.com>
date Sun, 29 Aug 2010 15:07:00 +0100
parents 3474:730876bbe4e6
children 3476:193bb0936a4e
files util/stanza.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/util/stanza.lua	Sun Aug 29 15:04:34 2010 +0100
+++ b/util/stanza.lua	Sun Aug 29 15:07:00 2010 +0100
@@ -122,8 +122,7 @@
 	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