aboutsummaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/json.c b/src/json.c
index 97c65df0b..6b72d3fde 100644
--- a/src/json.c
+++ b/src/json.c
@@ -3115,11 +3115,7 @@ static void jsonArrayLengthFunc(
if( (p->aBlob[i] & 0x0f)==JSONB_ARRAY ){
cnt = jsonbArrayCount(p, i);
}
- if( eErr ){
- if( eErr==2 ) sqlite3_result_error(ctx, "malformed JSON", -1);
- }else{
- sqlite3_result_int64(ctx, cnt);
- }
+ if( !eErr ) sqlite3_result_int64(ctx, cnt);
jsonParseFree(p);
}