Skip to content

Commit

Permalink
Merge pull request #1222 from rubocop/fix-internal-rubocop-cop-offense
Browse files Browse the repository at this point in the history
Fix RedundantMethodDispatchNode offense
  • Loading branch information
bquorning authored Dec 26, 2021
2 parents 573f22b + 62d1199 commit bc564fb
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 bc564fb

Please sign in to comment.