lib/rubocop/cop/mixin/enforce_superclass.rb in rubocop-0.50.0 vs lib/rubocop/cop/mixin/enforce_superclass.rb in rubocop-0.51.0

- old
+ new

@@ -8,10 +8,10 @@ base.def_node_matcher :class_definition, <<-PATTERN (class (const _ !:#{base::SUPERCLASS}) #{base::BASE_PATTERN} ...) PATTERN base.def_node_matcher :class_new_definition, <<-PATTERN - [!^(casgn nil :#{base::SUPERCLASS} ...) (send (const nil :Class) :new #{base::BASE_PATTERN})] + [!^(casgn nil? :#{base::SUPERCLASS} ...) (send (const nil? :Class) :new #{base::BASE_PATTERN})] PATTERN end def on_class(node) class_definition(node) do