Optimize appending deletion path in modify
This commit is contained in:
1 parent
371abc73ba
commit
af57893bc2
1 file changed
+1
-1
+1
-1
@@ -26,7 +26,7 @@ def _modify(paths; update):
|
||||
),
|
||||
(
|
||||
$$$$dot
|
||||
| setpath([1]; .[1] + [$p])
|
||||
| setpath([1, (.[1] | length)]; $p)
|
||||
)
|
||||
)
|
||||
) | . as $dot | $dot[0] | delpaths($dot[1]);
|
||||
|
||||
Reference in new issue
Block a user