lib/instapaper/http/utils.rb in instapaper-1.0.0 vs lib/instapaper/http/utils.rb in instapaper-1.0.1
- old
+ new
@@ -55,12 +55,10 @@
def perform_request(method, path, options)
Instapaper::HTTP::Request.new(self, method, path, options).perform
end
def coerce_hash(response)
- if response.key?('hash')
- response['instapaper_hash'] = response.delete('hash')
- end
+ response['instapaper_hash'] = response.delete('hash') if response.key?('hash')
if response.key?('bookmarks')
response['bookmarks'] = response['bookmarks'].collect do |bookmark|
coerce_hash(bookmark)
end
end