This commit is contained in:
Martin Polden 2018-02-10 18:04:16 +01:00
parent 215cce290c
commit 148451b883

View File

@ -31,10 +31,7 @@ func (d *empty) IsEmpty() bool { return true }
func Empty() Database { return &empty{} }
func Open(countryDB, cityDB string) (Database, error) {
var (
country *geoip2.Reader
city *geoip2.Reader
)
var country, city *geoip2.Reader
if countryDB != "" {
r, err := geoip2.Open(countryDB)
if err != nil {