lib/scss_lint/linter/indentation.rb in scss-lint-0.30.0 vs lib/scss_lint/linter/indentation.rb in scss-lint-0.31.0

- old
+ new

@@ -124,10 +124,11 @@ (node1.source_range && node1.source_range.end_pos.line == node2.line) end def at_root_contains_inline_selector?(node) return unless node.children.any? + return unless first_child_source = node.children.first.source_range - same_position?(node.source_range.end_pos, node.children.first.source_range.start_pos) + same_position?(node.source_range.end_pos, first_child_source.start_pos) end end end