Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

Commit d341c07

Browse files
committed
No need to assign ip if geoip fails
1 parent ab3e077 commit d341c07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

node_modules_koding/koding-regions/lib/regions.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module.exports = class Regions
7070
@findLocation = (ip)->
7171

7272
geo = geoip.lookup ip
73-
geo.ip = ip
73+
geo?.ip = ip
7474
return geo or {
7575
country : "Earth"
7676
region : "Somewhere"

0 commit comments

Comments
 (0)