Skip to content

Commit

Permalink
Merge pull request #1240 from rubocop/simplify-be-eql-pattern
Browse files Browse the repository at this point in the history
Simplify pattern in RSpec/BeEql
  • Loading branch information
bquorning authored Feb 24, 2022
2 parents 0b37208 + 890a6c6 commit d3c350c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/be_eql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class BeEql < Base

# @!method eql_type_with_identity(node)
def_node_matcher :eql_type_with_identity, <<-PATTERN
(send _ :to $(send nil? :eql {true false int float sym nil_type?}))
(send _ :to $(send nil? :eql {true false int float sym nil}))
PATTERN

def on_send(node)
Expand Down

0 comments on commit d3c350c

Please sign in to comment.