get rid of trailing commas

This commit is contained in:
Robert Lail 2013-03-18 19:23:10 -05:00
parent eb44a4920f
commit dc62eda478

View File

@ -12,7 +12,7 @@ class SimpleCov::Formatter::JSONFormatter
next unless result.filenames.include? filename next unless result.filenames.include? filename
data[:files] << { data[:files] << {
filename: filename, filename: filename,
coverage: coverage, coverage: coverage
} }
end end
data[:groups] = result.groups data[:groups] = result.groups
@ -20,7 +20,7 @@ class SimpleCov::Formatter::JSONFormatter
covered_percent: result.covered_percent, covered_percent: result.covered_percent,
covered_strength: result.covered_strength, covered_strength: result.covered_strength,
covered_lines: result.covered_lines, covered_lines: result.covered_lines,
total_lines: result.total_lines, total_lines: result.total_lines
} }
File.open(output_filepath, "w+") do |file| File.open(output_filepath, "w+") do |file|