Skip to content

Commit

Permalink
Fix Undefined Variable Error in ip2location_io
Browse files Browse the repository at this point in the history
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)
```
  • Loading branch information
14113 authored Jan 30, 2025
1 parent 27ee31a commit d0b22a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/geocoder/lookups/ip2location_io.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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" => "-",
Expand Down

0 comments on commit d0b22a4

Please sign in to comment.