chore: Upgrade to golangci-lint v2 (#7236)

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
This commit is contained in:
Manuel Rüger
2025-04-04 20:27:39 +02:00
committed by GitHub
parent e16162dd3c
commit 76ba39ffe9
50 changed files with 240 additions and 219 deletions

View File

@@ -11,10 +11,10 @@ type loggerAdapter struct {
}
func (l *loggerAdapter) Write(p []byte) (n int, err error) {
l.P.Warning(string(p))
l.Warning(string(p))
return len(p), nil
}
func (l *loggerAdapter) Log(msg string) {
l.P.Warning(msg)
l.Warning(msg)
}

View File

@@ -60,7 +60,7 @@ func TestTraceParse(t *testing.T) {
continue
}
if "" != m.serviceEndpoint {
if m.serviceEndpoint != "" {
t.Errorf("Test %v: Expected serviceEndpoint to be '' but found: %s", i, m.serviceEndpoint)
}
if test.endpoint != m.Endpoint {