diff --git a/lib/geocoder/lookups/latlon.rb b/lib/geocoder/lookups/latlon.rb index e6a77f299..cdc47ae38 100644 --- a/lib/geocoder/lookups/latlon.rb +++ b/lib/geocoder/lookups/latlon.rb @@ -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