lib/scss_lint/cli.rb in scss-lint-0.28.0 vs lib/scss_lint/cli.rb in scss-lint-0.29.0
- old
+ new
@@ -97,10 +97,10 @@
def run # rubocop:disable MethodLength
runner = Runner.new(@config)
runner.run(files_to_lint)
report_lints(runner.lints)
- if runner.lints.any? { |lint| lint.error? }
+ if runner.lints.any?(&:error?)
halt :error
elsif runner.lints.any?
halt :warning
end
rescue InvalidConfiguration => ex