Rubocop auto correct

This commit is contained in:
kojix2 2020-11-15 00:43:00 +09:00
parent 159b90998b
commit 19c3b0367a
3 changed files with 5 additions and 7 deletions

View File

@ -18,7 +18,7 @@ module Uplot
if series.size == 1
# If there is only one series, use the line number for label.
params.title ||= headers[0] if headers
labels = Array.new(series[0].size){|i| (i+1).to_s}
labels = Array.new(series[0].size) { |i| (i + 1).to_s }
values = series[0].map(&:to_f)
else
params.title ||= headers[1] if headers

View File

@ -62,14 +62,12 @@ module Uplot
else
arr
end
else
if headers
elsif headers
transpose2(arr[1..-1])
else
transpose2(arr)
end
end
end
def count_values(arr)
# tally was added in Ruby 2.7