Use next to skip iteration

This commit is contained in:
Markus Schirp 2014-06-28 20:53:44 +00:00
parent d46f702d82
commit 5cc4f28ace

View file

@ -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