Skip to content

Commit c2ba9f6

Browse files
authored
Fix infinte loop (#1767)
1 parent 6a1face commit c2ba9f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generatorv2/lib/utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def additional_json(json)
4747
def remove_tests(uuid, json)
4848
json["cases"].each_with_object([]) do |x, acc|
4949
if x["cases"]
50-
acc << remove_tests(uuid, json)
50+
acc << { "cases" => remove_tests(uuid, x) }
5151
elsif uuid.include?(x["uuid"])
5252
acc << x
5353
end

0 commit comments

Comments
 (0)