From d0b22a489a82199d05c6ce820035692a62d57caf Mon Sep 17 00:00:00 2001 From: Adam Martinik Date: Thu, 30 Jan 2025 08:48:03 +0100 Subject: [PATCH] Fix Undefined Variable Error in ip2location_io This fixes a NameError caused by an undefined local variable or method (null) in the ip2location_io service: ```ruby undefined local variable or method `null' for an instance of Geocoder::Lookup::Ip2locationIo (NameError) ``` --- lib/geocoder/lookups/ip2location_io.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/geocoder/lookups/ip2location_io.rb b/lib/geocoder/lookups/ip2location_io.rb index 3a4c2a5ea..a099c7726 100644 --- a/lib/geocoder/lookups/ip2location_io.rb +++ b/lib/geocoder/lookups/ip2location_io.rb @@ -48,8 +48,8 @@ def reserved_result(query) "country_name" => "-", "region_name" => "-", "city_name" => "-", - "latitude" => null, - "longitude" => null, + "latitude" => nil, + "longitude" => nil, "zip_code" => "-", "time_zone" => "-", "asn" => "-",