lib/scss_lint/linter_registry.rb in scss-lint-0.7.1 vs lib/scss_lint/linter_registry.rb in scss-lint-0.9.0

- old
+ new

@@ -12,13 +12,12 @@ end def extract_linters_from(linter_names) linter_names.map do |linter_name| begin - linter_class = linter_name.split('_').map(&:capitalize).join('') - Linter.const_get(linter_class) + Linter.const_get(linter_name) rescue NameError - raise NoSuchLinter.new("Linter #{linter_class} does not exist") + raise NoSuchLinter.new("Linter #{linter_name} does not exist") end end end end end