Fix dumb syntax

This commit is contained in:
Michael Miller 2019-11-20 20:40:53 -07:00
parent 5d84536e1e
commit d6c1169bc3

View file

@ -26,7 +26,7 @@ module Spectator::Matchers
match_data = matcher.match(element)
break match_data unless match_data.matched?
end
found ? found : SuccessfulMatchData.new
found || SuccessfulMatchData.new
end
# Negated matching for this matcher is not supported.