From f68d29bafdfce1a5deff8608c543158a4524ae91 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 22 Mar 2021 10:03:32 +0100 Subject: util.datamapper: Fix to skip parsing wrapped arrays that aren't there Turns out the unreachable error is reachable :D --- teal-src/util/datamapper.tl | 2 -- 1 file changed, 2 deletions(-) (limited to 'teal-src') diff --git a/teal-src/util/datamapper.tl b/teal-src/util/datamapper.tl index b94a1ace..1cc165e0 100644 --- a/teal-src/util/datamapper.tl +++ b/teal-src/util/datamapper.tl @@ -175,8 +175,6 @@ function parse_object (schema : schema_t, s : st.stanza_t) : { string : any } local wrapper = s:get_child(name, namespace); if wrapper then out[prop] = parse_array(propschema, wrapper); - else - error "unreachable" end else local value : string = extract_value (s, value_where, proptype, name, namespace, prefix, single_attribute, enums) -- cgit v1.2.3