lib/scss_lint/linter/url_quotes.rb in scss-lint-0.23.1 vs lib/scss_lint/linter/url_quotes.rb in scss-lint-0.24.0

- old
+ new

@@ -16,11 +16,10 @@ end private def check(node, string) - if string =~ /^\s*url\(\s*[^"']/ - add_lint(node, 'URLs should be enclosed in quotes') - end + return unless string =~ /^\s*url\(\s*[^"']/ + add_lint(node, 'URLs should be enclosed in quotes') end end end