Skip to content

Commit

Permalink
[fix] ruby 2.7.1 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
skcc321 committed Apr 9, 2020
1 parent 2e1c946 commit 9512447
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 9512447

Please sign in to comment.