Skip to content

Commit

Permalink
Fix RedundantMethodDispatchNode offense
Browse files Browse the repository at this point in the history
InternalAffairs/RedundantMethodDispatchNode cop was added in
rubocop/rubocop#10312
  • Loading branch information
bquorning committed Dec 26, 2021
1 parent 573f22b commit 62d1199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/factory_bot/create_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def call(corrector)
def call_with_block_replacement(node)
block = node.body
arguments = build_arguments(block, node.receiver.source)
replacement = format_receiver(block.send_node.receiver)
replacement = format_receiver(block.receiver)
replacement += format_method_call(block, 'create_list', arguments)
replacement += format_block(block)
replacement
Expand Down

0 comments on commit 62d1199

Please sign in to comment.