lib/wordnik/response.rb in wordnik-4.06.05 vs lib/wordnik/response.rb in wordnik-4.06.06

- old
+ new

@@ -34,14 +34,12 @@ # If body is JSON, parse it # TODO: If body is XML, parse it # Otherwise return raw string def body - begin - JSON.parse raw.body - rescue - raw.body - end + JSON.parse raw.body + rescue + raw.body end def headers h = {} raw.headers_hash.each {|k,v| h[k] = v } \ No newline at end of file