Skip to content

Commit

Permalink
Delete the branch of GetProcessMem.number_to_bigdecimal
Browse files Browse the repository at this point in the history
  • Loading branch information
wonda-tea-coffee committed Jul 1, 2019
1 parent dbb5f05 commit 80e8665
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/get_process_mem.rb
Expand Up @@ -3,14 +3,8 @@

# Cribbed from Unicorn Worker Killer, thanks!
class GetProcessMem
if Kernel.respond_to?(:BigDecimal)
private_class_method def self.number_to_bigdecimal(value)
BigDecimal(value)
end
else
private_class_method def self.number_to_bigdecimal(value)
BigDecimal.new(value)
end
private_class_method def self.number_to_bigdecimal(value)
BigDecimal(value)
end

private def number_to_bigdecimal(value)
Expand Down

0 comments on commit 80e8665

Please sign in to comment.