Skip to content
Snippets Groups Projects
Commit c1de805d authored by Alex Reisner's avatar Alex Reisner
Browse files

Merge pull request #912 from amatsuda/warnings

Ruby warnings
parents a6cffd13 1abfa3f4
No related branches found
No related tags found
No related merge requests found
......@@ -190,7 +190,7 @@ module Geocoder
else
JSON.parse(data)
end
rescue => err
rescue
raise_error(ResponseParseError.new(data)) or Geocoder.log(:warn, "Geocoding API's response was not valid JSON: #{data}")
end
......
......@@ -23,10 +23,6 @@ module Geocoder::Result
@data['country_name']
end
def country_code
@data['country_code']
end
def postal_code
@data['postcode']
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment