aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-06-08 17:44:44 +0200
committerKim Alvefur <zash@zash.se>2018-06-08 17:44:44 +0200
commit6d79aef1061c6f886fb1cdaa3065f4f559fd9191 (patch)
tree16adc5d9a11394bd2a4b82952c4fb350ca32f532 /util
parent74bfc82312facf3b94d795eb22884cd53050f799 (diff)
downloadprosody-6d79aef1061c6f886fb1cdaa3065f4f559fd9191.tar.gz
prosody-6d79aef1061c6f886fb1cdaa3065f4f559fd9191.zip
util.stanza: Remove redundant check from :text now done in :add_direct_child
Diffstat (limited to 'util')
-rw-r--r--util/stanza.lua1
1 files changed, 0 insertions, 1 deletions
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