Skip to content

Commit

Permalink
RuboCop: Style/SuperArguments (#200)
Browse files Browse the repository at this point in the history
Call super without arguments and parentheses when the signature is
identical.
  • Loading branch information
jlduran authored Oct 16, 2024
1 parent 61dbe32 commit c6d4072
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/numbers_and_words/translations/fr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Fr < Base
def tens(number, options = {})
return t(:eighty) if number == SPECIAL_TENS_CASE && options[:alone].nil?

super(number, options)
super
end

def tens_with_ones(numbers, options = {})
Expand Down
6 changes: 3 additions & 3 deletions lib/numbers_and_words/translations/pt-BR.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def tens(number, options = {})
def teens(number, options = {})
return [tens(1, options), ones(number[0], options)].join(' ') if ordinal? options

super(number, options)
super
end

def tens_with_ones(numbers, options = {})
Expand All @@ -48,10 +48,10 @@ def hundreds(number, options = {})

def megs(capacity, options = {})
return t([options[:prefix], :mega, options[:gender]].join('.'))[capacity] if ordinal?(options)
return super(capacity, options) if options[:is_opaque] || options[:is_without_connector]
return super if options[:is_opaque] || options[:is_without_connector]

suffix = options[:is_with_comma] ? ',' : " #{union}"
super(capacity, options) + suffix
super + suffix
end

def micros(capacity, number = nil)
Expand Down

0 comments on commit c6d4072

Please sign in to comment.