# HG changeset patch # User Kim Alvefur # Date 1616403812 -3600 # Node ID 5ebad952ebf766a86f32d635968121ee9c05806d # Parent 087d710ed520c40344cfba7094ef4103916bc8f3 util.datamapper: Fix to skip parsing wrapped arrays that aren't there Turns out the unreachable error is reachable :D diff -r 087d710ed520 -r 5ebad952ebf7 teal-src/util/datamapper.tl --- a/teal-src/util/datamapper.tl Sun Mar 21 02:26:28 2021 +0100 +++ b/teal-src/util/datamapper.tl Mon Mar 22 10:03:32 2021 +0100 @@ -175,8 +175,6 @@ 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) diff -r 087d710ed520 -r 5ebad952ebf7 util/datamapper.lua --- 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)