add golangci-lint linter (#5499)

This commit is contained in:
Ondřej Benkovský
2022-07-10 20:06:33 +02:00
committed by GitHub
parent abc5ac8017
commit c2dbb7141a
104 changed files with 83 additions and 184 deletions

View File

@@ -14,7 +14,6 @@ import (
)
func TestMetadata(t *testing.T) {
tests := []struct {
label string
expectedValue string
@@ -37,7 +36,6 @@ func TestMetadata(t *testing.T) {
knownIPAddr := "81.2.69.142" // This IP should be be part of the CDIR address range used to create the database fixtures.
for _, tc := range tests {
t.Run(fmt.Sprintf("%s/%s", tc.label, "direct"), func(t *testing.T) {
geoIP, err := newGeoIP(cityDBPath, false)
if err != nil {
@@ -89,5 +87,4 @@ func testMetadata(t *testing.T, state request.Request, geoIP *GeoIP, label, expe
t.Errorf("expected value for label %q should be %q, got %q instead",
label, expectedValue, value)
}
}