Skip to content

Commit cfb14aa

Browse files
authored
Merge pull request #1446 from skcc321/master
[fix] ruby 2.7.1 warning
2 parents 2e1c946 + 9512447 commit cfb14aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/geocoder/lookups/latlon.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ def results(query)
2525
# The API returned a 404 response, which indicates no results found
2626
elsif doc['error']['type'] == 'api_error'
2727
[]
28-
elsif
29-
doc['error']['type'] == 'authentication_error'
28+
elsif doc['error']['type'] == 'authentication_error'
3029
raise_error(Geocoder::InvalidApiKey) ||
3130
Geocoder.log(:warn, "LatLon.io service error: invalid API key.")
3231
else

0 commit comments

Comments
 (0)