summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parser_json.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/parser_json.c b/src/parser_json.c
index 993368f0..60929386 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -910,9 +910,7 @@ static struct expr *json_parse_concat_expr(struct json_ctx *ctx,
json_t *value;
size_t index;
- if (json_is_object(root))
- return json_parse_primary_expr(ctx, root);
- else if (!json_is_array(root)) {
+ if (!json_is_array(root)) {
json_error(ctx, "Unexpected concat object type %s.",
json_typename(root));
return NULL;