lib/inch/cli/sparkline_helper.rb in inch-0.4.6 vs lib/inch/cli/sparkline_helper.rb in inch-0.4.7
- old
+ new
@@ -19,12 +19,12 @@
__sparkline(list, grade_lists)
end
def __sparkline(list, grade_lists)
sparkline = Sparkr::Sparkline.new(list)
- sparkline.format do |tick, count, index|
+ sparkline.format do |tick, _count, index|
t = tick.color(grade_lists[index].color)
- index == 0 ? t + ' ' : t
+ index == 0 ? t + " " : t
end
end
end
end
end