diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 94ab700..9e9032d 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -198,10 +198,3 @@ Style/StringConcatenation: - 'spec/ruby_units/bugs_spec.rb' - 'spec/ruby_units/unit_spec.rb' - 'spec/ruby_units/utf-8/unit_spec.rb' - -# Offense count: 4 -# This cop supports safe autocorrection (--autocorrect). -Style/SuperArguments: - Exclude: - - 'lib/ruby_units/math.rb' - - 'lib/ruby_units/time.rb' diff --git a/lib/ruby_units/math.rb b/lib/ruby_units/math.rb index 352cd15..303d582 100644 --- a/lib/ruby_units/math.rb +++ b/lib/ruby_units/math.rb @@ -38,7 +38,7 @@ def sin(angle) # @return [Numeric, RubyUnits::Unit] def asin(number) if number.is_a?(RubyUnits::Unit) - [super(number), "radian"].to_unit + [super, "radian"].to_unit else super end @@ -54,7 +54,7 @@ def cos(angle) # @return [Numeric, RubyUnits::Unit] def acos(number) if number.is_a?(RubyUnits::Unit) - [super(number), "radian"].to_unit + [super, "radian"].to_unit else super end @@ -100,7 +100,7 @@ def hypot(x, y) # @return [RubyUnits::Unit] if argument is a unit def atan(number) if number.is_a?(RubyUnits::Unit) - [super(number), "radian"].to_unit + [super, "radian"].to_unit else super end diff --git a/lib/ruby_units/time.rb b/lib/ruby_units/time.rb index 8c0aea1..8cb6d81 100644 --- a/lib/ruby_units/time.rb +++ b/lib/ruby_units/time.rb @@ -27,7 +27,7 @@ def at(*args, **kwargs) super(args.first.convert_to("second").scalar, **options) end else - super(*args, **kwargs) + super end end