chore: linter: errorlint

Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
Jakob Borg
2025-10-23 22:48:54 +02:00
parent 7c9d06b4d2
commit 8e796ddb94
14 changed files with 31 additions and 17 deletions
+3 -1
View File
@@ -5,6 +5,7 @@ package client
import (
"context"
"crypto/tls"
"errors"
"fmt"
"net"
"net/url"
@@ -137,7 +138,8 @@ func TestRelay(ctx context.Context, uri *url.URL, certs []tls.Certificate, sleep
if err == nil {
return nil
}
if _, ok := err.(*incorrectResponseCodeErr); !ok {
incorrectResponseCodeErr := &incorrectResponseCodeErr{}
if errors.As(err, &incorrectResponseCodeErr) {
return fmt.Errorf("getting invitation: %w", err)
}
time.Sleep(sleep)