Use next to skip iteration
This commit is contained in:
parent
d46f702d82
commit
5cc4f28ace
1 changed files with 7 additions and 7 deletions
|
@ -56,13 +56,13 @@ module Mutant
|
|||
|
||||
expression = Expression.parse(full_description)
|
||||
|
||||
if expression
|
||||
aggregate << Test.new(
|
||||
strategy: self,
|
||||
expression: expression,
|
||||
example_group: example_group
|
||||
)
|
||||
end
|
||||
next unless expression
|
||||
|
||||
aggregate << Test.new(
|
||||
strategy: self,
|
||||
expression: expression,
|
||||
example_group: example_group
|
||||
)
|
||||
end
|
||||
end
|
||||
memoize :all_tests
|
||||
|
|
Loading…
Reference in a new issue