lib/cc/analyzer/formatters.rb in codeclimate-0.6.1 vs lib/cc/analyzer/formatters.rb in codeclimate-0.6.2
- old
+ new
@@ -10,10 +10,10 @@
json: JSONFormatter,
text: PlainTextFormatter,
}.freeze
def self.resolve(name)
- FORMATTERS[name.to_sym].new(ENV['FILESYSTEM_DIR']) or raise InvalidFormatterError, "'#{name}' is not a valid formatter. Valid options are: #{FORMATTERS.keys.join(", ")}"
+ FORMATTERS[name.to_sym] or raise InvalidFormatterError, "'#{name}' is not a valid formatter. Valid options are: #{FORMATTERS.keys.join(", ")}"
end
end
end
end