Skip to content

Commit

Permalink
Silence warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jlduran committed Jun 11, 2017
1 parent 13ac973 commit 4235411
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def is_opaque?
end

def is_one_thousand?
@current_capacity == 1 && figures[0] == 1 && figures.hundreds.nil? && figures.tens.nil?
current_capacity == 1 && figures[0] == 1 && figures.hundreds.nil? && figures.tens.nil?
end

def is_without_connector?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def process language, figures
end

def handle_thousands language, figures
units, tens, hundreds, thousands = *figures.to_a.dup
_units, _tens, hundreds, thousands = *figures.to_a.dup
if hundreds == 0
language.number_without_capacity_to_words + language.complex_number_to_words
else
Expand All @@ -45,7 +45,7 @@ def handle_thousands language, figures
end

def handle_hundreds language, figures
units, tens, hundreds = *figures.to_a.dup
_units, _tens, hundreds = *figures.to_a.dup
result = tens_with_oh language, figures
result.push hundreds.to_words
end
Expand Down

0 comments on commit 4235411

Please sign in to comment.