Skip to content

Commit

Permalink
Remove redundant default argument
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Apr 30, 2023
1 parent dca4535 commit 4a2f539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/t/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def strip_tags(html)

def number_with_delimiter(number, delimiter = ',')
digits = number.to_s.chars
groups = digits.reverse.each_slice(3).collect { |g| g.join('') }
groups = digits.reverse.each_slice(3).collect { |g| g.join }
groups.join(delimiter).reverse
end

Expand Down

0 comments on commit 4a2f539

Please sign in to comment.