lib/rubocop/rspec/blank_line_separation.rb in rubocop-rspec-1.32.0 vs lib/rubocop/rspec/blank_line_separation.rb in rubocop-rspec-1.33.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module RuboCop module RSpec # Helps determine the offending location if there is not a blank line # following the node. Allows comments to follow directly after. module BlankLineSeparation @@ -24,10 +26,10 @@ source_range(processed_source.buffer, last_line, start, content_length) end def last_child?(node) - return true unless node.parent && node.parent.begin_type? + return true unless node.parent&.begin_type? node.equal?(node.parent.children.last) end def autocorrect(node)