Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Börjesson <jon@84codes.com>
  • Loading branch information
viktorerlingsson and spuun authored Jan 10, 2025
1 parent d47f57f commit fdfb99b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lavinmq/amqp/queue/stream_queue_message_store.cr
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ module LavinMQ::AMQP

private def matching?(msg_headers, consumer_filter, match_unfiltered) : Bool
if msg_filter = filter_value_from_headers(msg_headers)
consumer_filter.each do |filter|
return true if msg_filter == filter
end
return consumer_filter.includes? msg_filter
else
return match_unfiltered
end
Expand Down

0 comments on commit fdfb99b

Please sign in to comment.