Skip to content

Commit

Permalink
Remove unnecessary $ captures (#23)
Browse files Browse the repository at this point in the history
Remove unnecessary `$` captures
  • Loading branch information
ydah committed May 7, 2023
1 parent a04bbde commit 3915cab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rubocop/cop/factory_bot/create_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ class CreateList < ::RuboCop::Cop::Base

# @!method arguments_include_method_call?(node)
def_node_matcher :arguments_include_method_call?, <<-PATTERN
(send #factory_call? :create (sym $_) `$(send ...))
(send #factory_call? :create sym `$(send ...))
PATTERN

# @!method factory_call(node)
def_node_matcher :factory_call, <<-PATTERN
(send #factory_call? :create (sym $_) $...)
(send #factory_call? :create sym ...)
PATTERN

# @!method factory_list_call(node)
Expand Down

0 comments on commit 3915cab

Please sign in to comment.