Skip to content

Commit

Permalink
Merge pull request #1888 from yasu551/remove-unnecessary-disable-comment
Browse files Browse the repository at this point in the history
Remove unnecessary disable comment.
  • Loading branch information
ydah authored May 22, 2024
2 parents 7ff5d5a + 0a3e174 commit 3060612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/expect_in_hook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ExpectInHook < Base
# @!method expectation(node)
def_node_search :expectation, '(send nil? #Expectations.all ...)'

def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler
def on_block(node)
return unless hook?(node)
return if node.body.nil?

Expand Down

0 comments on commit 3060612

Please sign in to comment.