Diff

util/stanza.lua @ 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
parent 3474:730876bbe4e6
child 3477:6350b114e0e4
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