Skip to content

Commit

Permalink
Address lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
icy-arctic-fox committed Dec 23, 2024
1 parent 17552e9 commit 01d3186
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spectator/matchers/built_in/all_matcher.cr
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ module Spectator::Matchers::BuiltIn
failures = actual_value.map do |value|
Matcher.match(@matcher, value)
end

# Use of `any?` is intentional since the array consists of `MatchFailure?`.
# ameba:disable Performance/AnyInsteadOfEmpty
return unless failures.any?

MatchFailure.new do |printer|
Expand Down

0 comments on commit 01d3186

Please # to comment.