Software /
code /
prosody
Diff
util/datamapper.lua @ 11470:5ebad952ebf7
util.datamapper: Fix to skip parsing wrapped arrays that aren't there
Turns out the unreachable error is reachable :D
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 22 Mar 2021 10:03:32 +0100 |
parent | 11468:348b191cd850 |
child | 11471:ab03de8e503e |
line wrap: on
line diff
--- a/util/datamapper.lua Sun Mar 21 02:26:28 2021 +0100 +++ b/util/datamapper.lua Mon Mar 22 10:03:32 2021 +0100 @@ -143,8 +143,6 @@ local wrapper = s:get_child(name, namespace); if wrapper then out[prop] = parse_array(propschema, wrapper); - else - error("unreachable") end else local value = extract_value(s, value_where, proptype, name, namespace, prefix, single_attribute, enums)