Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed May 13, 2012
1 parent 485707f commit 3e95f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dalli/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ def normalize_options(opts)
opts[:compress] = opts.delete(:compression)
end
begin
opts[:expires_in] = opts[:expires_in].to_i || 0
opts[:expires_in] = opts[:expires_in].to_i
rescue NoMethodError
raise ArgumentError, "cannot convert expires_in #{opts[:expires_in].inspect} to an integer"
raise ArgumentError, "cannot convert :expires_in => #{opts[:expires_in].inspect} to an integer"
end
opts
end
Expand Down

0 comments on commit 3e95f94

Please sign in to comment.