From ada8c52f53d6573ab2abd6b6fb0ea8c0520c97c2 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Sat, 30 May 2020 05:57:37 +0430 Subject: [PATCH] Jq: Fix our share of #513 --- impls/jq/step3_env.jq | 4 ++-- impls/jq/step4_if_fn_do.jq | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/impls/jq/step3_env.jq b/impls/jq/step3_env.jq index 49ae998e..64c13e68 100644 --- a/impls/jq/step3_env.jq +++ b/impls/jq/step3_env.jq @@ -108,7 +108,7 @@ def EVAL(env): end; (select(.kind == "list") | if .value | length == 0 then - . + . | addEnv(env) else ( ( @@ -215,4 +215,4 @@ def repl(env): } | ., xrepl; {stop: false, env: env} | xrepl | if .value then (.value | _display) else empty end; -repl(replEnv) \ No newline at end of file +repl(replEnv) diff --git a/impls/jq/step4_if_fn_do.jq b/impls/jq/step4_if_fn_do.jq index 3fcfcfe0..bccd27e7 100644 --- a/impls/jq/step4_if_fn_do.jq +++ b/impls/jq/step4_if_fn_do.jq @@ -419,7 +419,7 @@ def EVAL(env): end; (select(.kind == "list") | if .value | length == 0 then - . + . | addEnv(env) else ( (