mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 10:43:17 -04:00
chore: Upgrade to golangci-lint v2 (#7236)
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
This commit is contained in:
@@ -91,8 +91,8 @@ func (g GeoIP) Metadata(ctx context.Context, state request.Request) context.Cont
|
||||
}
|
||||
}
|
||||
|
||||
switch {
|
||||
case g.db.provides&city == city:
|
||||
switch g.db.provides & city {
|
||||
case city:
|
||||
data, err := g.db.City(srcIP)
|
||||
if err != nil {
|
||||
log.Debugf("Setting up metadata failed due to database lookup error: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user