Permalink
Browse files

Remove colons in case statements

They are illegal in Ruby 1.9
  • Loading branch information...
skade committed Oct 8, 2010
1 parent 977ab31 commit 559866c6c04534432f1358f625d57fb4b6b792e6
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/kestrel/client/stats_helper.rb
@@ -69,9 +69,9 @@ def merge_stats(all_stats)
def deserialize_stat_value(value)
case value
- when /^\d+\.\d+$/:
+ when /^\d+\.\d+$/
value.to_f
- when /^\d+$/:
+ when /^\d+$/
value.to_i
else
value

0 comments on commit 559866c

Please sign in to comment.