We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71086b1 commit 1b71ff2Copy full SHA for 1b71ff2
generatorv2/lib/utils.rb
@@ -46,11 +46,11 @@ def additional_json(json)
46
47
def remove_tests(uuid, json)
48
json['cases'].each_with_object([]) do |x, acc|
49
- acc << if x['cases']
50
- { 'cases' => remove_tests(uuid, x), 'description' => x['description'] }
51
- elsif uuid.include?(x['uuid'])
52
- x
53
- end
+ if x['cases']
+ acc << { 'cases' => remove_tests(uuid, x), 'description' => x['description'] }
+ elsif uuid.include?(x['uuid'])
+ acc << x
+ end
54
end
55
56
0 commit comments