We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e1c946 + 9512447 commit cfb14aaCopy full SHA for cfb14aa
lib/geocoder/lookups/latlon.rb
@@ -25,8 +25,7 @@ def results(query)
25
# The API returned a 404 response, which indicates no results found
26
elsif doc['error']['type'] == 'api_error'
27
[]
28
- elsif
29
- doc['error']['type'] == 'authentication_error'
+ elsif doc['error']['type'] == 'authentication_error'
30
raise_error(Geocoder::InvalidApiKey) ||
31
Geocoder.log(:warn, "LatLon.io service error: invalid API key.")
32
else
0 commit comments