util.set: Rename method argument to avoid name clash [luacheck]
[prosody.git] / util / xml.lua
index 6dbed65d2f5b1c144890b17cec5511386a8643cd..88ccedde40ca4b8a44ab3048a2a60b4f199ccfba 100644 (file)
@@ -11,6 +11,7 @@ local parse_xml = (function()
        local ns_separator = "\1";
        local ns_pattern = "^([^"..ns_separator.."]*)"..ns_separator.."?(.*)$";
        return function(xml)
+               --luacheck: ignore 212/self
                local handler = {};
                local stanza = st.stanza("root");
                function handler:StartElement(tagname, attr)
@@ -38,7 +39,7 @@ local parse_xml = (function()
                function handler:CharacterData(data)
                        stanza:text(data);
                end
-               function handler:EndElement(tagname)
+               function handler:EndElement()
                        stanza:up();
                end
                local parser = lxp.new(handler, "\1");