Comparison

core/xmlhandlers.lua @ 844:503ca8da1000

core.xmlhandlers: Remove redundant check in condition
author Matthew Wild <mwild1@gmail.com>
date Fri, 27 Feb 2009 04:42:06 +0000
parent 838:1035846d6273
child 896:2c0b9e3c11c3
comparison
equal deleted inserted replaced
843:1d2dab41b0db 844:503ca8da1000
120 else 120 else
121 cb_error(session, "parse-error", "unexpected-element-close", name); 121 cb_error(session, "parse-error", "unexpected-element-close", name);
122 end 122 end
123 end 123 end
124 if stanza then 124 if stanza then
125 if stanza and #chardata > 0 then 125 if #chardata > 0 then
126 -- We have some character data in the buffer 126 -- We have some character data in the buffer
127 stanza:text(t_concat(chardata)); 127 stanza:text(t_concat(chardata));
128 chardata = {}; 128 chardata = {};
129 end 129 end
130 -- Complete stanza 130 -- Complete stanza