aboutsummaryrefslogtreecommitdiffstats
path: root/util/stanza.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-31 14:01:12 +0100
committerKim Alvefur <zash@zash.se>2021-12-31 14:01:12 +0100
commit5ead4102de553047acb50c1201f06b3c84d57e73 (patch)
treef588303a6b1b538d07b775f40df5983d8b022150 /util/stanza.lua
parent893de236f687dae595e91382f019fa9a759da3a7 (diff)
downloadprosody-5ead4102de553047acb50c1201f06b3c84d57e73.tar.gz
prosody-5ead4102de553047acb50c1201f06b3c84d57e73.zip
util.stanza: Remove dead code
These cases are caught by `check_text(v, ..)` above. Those errors do not contain the attribute however, which would have been nice.
Diffstat (limited to 'util/stanza.lua')
-rw-r--r--util/stanza.lua5
1 files changed, 0 insertions, 5 deletions
diff --git a/util/stanza.lua b/util/stanza.lua
index 23240301..a38f80b3 100644
--- a/util/stanza.lua
+++ b/util/stanza.lua
@@ -70,11 +70,6 @@ local function check_attr(attr)
for k, v in pairs(attr) do
check_name(k, "attribute");
check_text(v, "attribute");
- if type(v) ~= "string" then
- error("invalid attribute value for '"..k.."': expected string, got "..type(v));
- elseif not valid_utf8(v) then
- error("invalid attribute value for '"..k.."': contains invalid utf8");
- end
end
end
end