Skip to content

Commit

Permalink
Merge pull request #1889 from yasu551/remove-unnecessary-on_numblock-…
Browse files Browse the repository at this point in the history
…method

Remove unnecessary `on_numblock` method
  • Loading branch information
ydah authored May 22, 2024
2 parents 3060612 + 5da5c1d commit 6323fe9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/rubocop/cop/rspec/expect_in_let.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ExpectInLet < Base
# @!method expectation(node)
def_node_search :expectation, '(send nil? #Expectations.all ...)'

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

Expand All @@ -31,8 +31,6 @@ def on_block(node)
end
end

alias on_numblock on_block

private

def message(expect)
Expand Down

0 comments on commit 6323fe9

Please sign in to comment.