Software /
code /
prosody
Changeset
12140:1a4c61253932
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 31 Dec 2021 14:01:12 +0100 |
parents | 12139:7d6497294d92 |
children | 12141:3ac801630b4b |
files | util/stanza.lua |
diffstat | 1 files changed, 0 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/util/stanza.lua Fri Dec 31 14:00:28 2021 +0100 +++ b/util/stanza.lua Fri Dec 31 14:01:12 2021 +0100 @@ -70,11 +70,6 @@ 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