lib/rubocop/cop/rails/blank.rb in rubocop-rails-2.4.0 vs lib/rubocop/cop/rails/blank.rb in rubocop-rails-2.4.1

- old
+ new

@@ -61,11 +61,11 @@ # `(send nil $_)` is not actually a valid match for an offense. Nodes # that have a single method call on the left hand side # (`bar || foo.empty?`) will blow up when checking # `(send (:nil) :== $_)`. - def_node_matcher :nil_or_empty?, <<-PATTERN + def_node_matcher :nil_or_empty?, <<~PATTERN (or { (send $_ :!) (send $_ :nil?) (send $_ :== nil) @@ -80,10 +80,10 @@ def_node_matcher :not_present?, '(send (send $_ :present?) :!)' def_node_matcher :defining_blank?, '(def :blank? (args) ...)' - def_node_matcher :unless_present?, <<-PATTERN + def_node_matcher :unless_present?, <<~PATTERN (:if $(send $_ :present?) {nil? (...)} ...) PATTERN def on_send(node) return unless cop_config['NotPresent']