From 6d79aef1061c6f886fb1cdaa3065f4f559fd9191 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 8 Jun 2018 17:44:44 +0200 Subject: util.stanza: Remove redundant check from :text now done in :add_direct_child --- util/stanza.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/util/stanza.lua b/util/stanza.lua index 2691cb0b..1f67c75b 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -116,7 +116,6 @@ end function stanza_mt:text(text) if text ~= nil and text ~= "" then - check_text(text, "text"); local last_add = self.last_add; (last_add and last_add[#last_add] or self):add_direct_child(text); end -- cgit v1.2.3