From 95124477fc4c7a676ce1059418ad8b41d3c179b1 Mon Sep 17 00:00:00 2001 From: Viktor Date: Fri, 10 Apr 2020 00:23:45 +0300 Subject: [PATCH] [fix] ruby 2.7.1 warning --- lib/geocoder/lookups/latlon.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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