lib/scss_lint/config.rb in scss-lint-0.28.0 vs lib/scss_lint/config.rb in scss-lint-0.29.0
- old
+ new
@@ -34,10 +34,10 @@
def for_file(file_path)
directory = File.dirname(File.expand_path(file_path))
@dir_to_config ||= {}
@dir_to_config[directory] ||=
begin
- config_file = possible_config_files(directory).find { |path| path.file? }
+ config_file = possible_config_files(directory).find(&:file?)
Config.load(config_file.to_s) if config_file
end
end
def linter_name(linter)