Skip to content

Commit 9512447

Browse files
committed
[fix] ruby 2.7.1 warning
1 parent 2e1c946 commit 9512447

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)