Skip to content

Commit

Permalink
Remove redundant RESTRICT_ON_SEND
Browse files Browse the repository at this point in the history
`RESTRICT_ON_SEND` is defined in mixed-in classes.
  • Loading branch information
koic committed Jul 3, 2022
1 parent 01640e7 commit 97a073b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/rubocop/cop/mixin/predicate_assertion_handleable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module Minitest
# Common functionality for `Minitest/AssertPredicate` and `Minitest/RefutePredicate` cops.
module PredicateAssertionHandleable
MSG = 'Prefer using `%<assertion_type>s_predicate(%<new_arguments>s)`.'
RESTRICT_ON_SEND = %i[assert].freeze

def on_send(node)
return unless (arguments = peel_redundant_parentheses_from(node.arguments))
Expand Down

0 comments on commit 97a073b

Please sign in to comment.