Skip to content

Commit

Permalink
Don't attempt to parse nil response body
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jul 25, 2012
1 parent 71d6b2c commit c2f6dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/twitter/response/parse_json.rb
Expand Up @@ -7,7 +7,7 @@ class ParseJson < Faraday::Response::Middleware

def parse(body)
case body
when ''
when '', nil
nil
when 'true'
true
Expand Down

0 comments on commit c2f6dc7

Please sign in to comment.