lib/rubocop/cop/performance/detect.rb in rubocop-performance-1.5.2 vs lib/rubocop/cop/performance/detect.rb in rubocop-performance-1.6.0
- old
+ new
@@ -26,10 +26,10 @@
MSG = 'Use `%<prefer>s` instead of ' \
'`%<first_method>s.%<second_method>s`.'
REVERSE_MSG = 'Use `reverse.%<prefer>s` instead of ' \
'`%<first_method>s.%<second_method>s`.'
- def_node_matcher :detect_candidate?, <<-PATTERN
+ def_node_matcher :detect_candidate?, <<~PATTERN
{
(send $(block (send _ {:select :find_all}) ...) ${:first :last} $...)
(send $(send _ {:select :find_all} ...) ${:first :last} $...)
}
PATTERN