From b8e7f5af88eac5649e7cc82223f2ee9177396a20 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Tue, 19 Jan 2021 19:26:41 +0900 Subject: [PATCH] Rubocop auto correct --- lib/youplot/dsv.rb | 8 +++----- youplot.gemspec | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/youplot/dsv.rb b/lib/youplot/dsv.rb index d59de1f..55841ca 100644 --- a/lib/youplot/dsv.rb +++ b/lib/youplot/dsv.rb @@ -67,12 +67,10 @@ module YouPlot else Array.new(arr[0].size, []) end + elsif transpose + arr else - if transpose - arr - else - transpose2(arr) - end + transpose2(arr) end end end diff --git a/youplot.gemspec b/youplot.gemspec index 97f04e9..5ad789a 100644 --- a/youplot.gemspec +++ b/youplot.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |spec| spec.files = Dir['*.{md,txt}', '{lib,exe}/**/*'] spec.bindir = 'exe' - spec.executables = ['uplot', 'youplot'] + spec.executables = %w[uplot youplot] spec.require_paths = ['lib'] spec.add_runtime_dependency 'unicode_plot'