ruby-amqp / hutch

A system for processing messages from RabbitMQ.
https://gocardless.com/blog/hutch-inter-service-communication-with-rabbitmq/
MIT License
855 stars 137 forks source link

Fix warning about usage of TrueClass#=~ on Ruby 2.7 #375

Closed romuloceccon closed 2 years ago

romuloceccon commented 2 years ago

This fixes a warning raised by Ruby 2.7 when attempting to check a boolean against a regexp:

.../lib/hutch/config.rb:225: warning: deprecated Object#=~ is called on TrueClass; it always returns nil