Permalink
Browse files

removed case statement since a simple if/else will do

  • Loading branch information...
1 parent 0c410e6 commit 1b4d345f1b12cbeec3dfad68f36fbcdaa951dfa3 @stve stve committed Jul 2, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/tweetstream/site_stream_client.rb
View
7 lib/tweetstream/site_stream_client.rb
@@ -99,9 +99,10 @@ def request(method, path, options, &block)
http.callback do
if http.response_header.status == 200
if block && block.kind_of?(Proc)
- case block.arity
- when 1 then block.call http.response
- else block.call
+ if block.arity == 1
+ block.call http.response
+ else
+ block.call
end
end
else

0 comments on commit 1b4d345

Please sign in to comment.