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:
xuweiwei
2021-11-24 16:24:49 +08:00
committed by GitHub
parent eec4acdd96
commit 7e12327ab1
2 changed files with 3 additions and 3 deletions

View File

@@ -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
}
}