From 890a6c613726d6be3ce6b9a775fbe924c905342c Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Thu, 24 Feb 2022 23:07:52 +0100 Subject: [PATCH] Simplify pattern in RSpec/BeEql --- lib/rubocop/cop/rspec/be_eql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rubocop/cop/rspec/be_eql.rb b/lib/rubocop/cop/rspec/be_eql.rb index 6cbece93d..fdf7cc040 100644 --- a/lib/rubocop/cop/rspec/be_eql.rb +++ b/lib/rubocop/cop/rspec/be_eql.rb @@ -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)