Skip to content

Commit

Permalink
Merge pull request #1446 from skcc321/master
Browse files Browse the repository at this point in the history
[fix] ruby 2.7.1 warning
  • Loading branch information
alexreisner authored Apr 9, 2020
2 parents 2e1c946 + 9512447 commit cfb14aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/geocoder/lookups/latlon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ def results(query)
# The API returned a 404 response, which indicates no results found
elsif doc['error']['type'] == 'api_error'
[]
elsif
doc['error']['type'] == 'authentication_error'
elsif doc['error']['type'] == 'authentication_error'
raise_error(Geocoder::InvalidApiKey) ||
Geocoder.log(:warn, "LatLon.io service error: invalid API key.")
else
Expand Down

0 comments on commit cfb14aa

Please sign in to comment.