Skip to content

Commit

Permalink
ii
Browse files Browse the repository at this point in the history
  • Loading branch information
yachang committed Nov 15, 2018
1 parent 04a10bb commit 137f58b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions handler/geoip/geoip.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ func (gi *GeoIP) Free() {
C.GeoIP_delete(gi.db)
log.Println("here")
gi = nil
if gi != nil {
log.Println("gi is not nil")
if gi.db != nil {
log.Println("gi.db is not nil")
}
if gi == nil {
log.Println("gi is nil")
if gi.db == nil {
log.Println("gi.db is nil")
}
log.Println(gi)
return
Expand Down

0 comments on commit 137f58b

Please sign in to comment.