Skip to content

Commit

Permalink
Remove an useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Dec 7, 2023
1 parent 461168f commit 76911d0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/rubocop/cop/performance/select_map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ class SelectMap < Base
MSG = 'Use `filter_map` instead of `%<method_name>s.map`.'
RESTRICT_ON_SEND = %i[select filter].freeze

def_node_matcher :bad_method?, <<~PATTERN
(send nil? :bad_method ...)
PATTERN

def on_send(node)
return if (first_argument = node.first_argument) && !first_argument.block_pass_type?
return unless (send_node = map_method_candidate(node))
Expand Down

0 comments on commit 76911d0

Please sign in to comment.