diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 9e9032d..6502178 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -11,13 +11,6 @@ Lint/BinaryOperatorWithIdenticalOperands: Exclude: - 'spec/ruby_units/unit_spec.rb' -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AutoCorrect, CheckForMethodsWithNoSideEffects. -Lint/Void: - Exclude: - - 'lib/ruby_units/definition.rb' - # Offense count: 2 # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns. # SupportedStyles: snake_case, normalcase, non_integer diff --git a/lib/ruby_units/definition.rb b/lib/ruby_units/definition.rb index 49c3a88..1b7a20e 100644 --- a/lib/ruby_units/definition.rb +++ b/lib/ruby_units/definition.rb @@ -75,7 +75,6 @@ def definition=(unit) @kind = base.kind @numerator = base.numerator @denominator = base.denominator - self end # is this definition for a prefix?