mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
plugin/geoip: cleanup code (#5009)
remove unnecessary float64 convert and clean code Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
This commit is contained in:
@@ -58,7 +58,7 @@ func newGeoIP(dbPath string) (*GeoIP, error) {
|
||||
return nil, fmt.Errorf("unexpected failure looking up database %q schema %q: %v", filepath.Base(dbPath), schema.name, err)
|
||||
}
|
||||
} else {
|
||||
db.provides = db.provides | schema.provides
|
||||
db.provides |= schema.provides
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user