Skip to content

Commit cd9a1a6

Browse files
committed
Fix lint: use errors.New per perfsprint linter rule
1 parent 4b394b8 commit cd9a1a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/doctor/doctor_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
"context"
66
"encoding/json"
7-
"fmt"
7+
"errors"
88
"net/http"
99
"net/http/httptest"
1010
"os"
@@ -430,7 +430,7 @@ func TestCheckNetworkConfigResolutionFailureWithHost(t *testing.T) {
430430
cfg := &config.Config{
431431
Host: srv.URL,
432432
}
433-
resolveErr := fmt.Errorf("validate: missing credentials")
433+
resolveErr := errors.New("validate: missing credentials")
434434

435435
ctx := cmdio.MockDiscard(t.Context())
436436
cmd := newTestCmd(ctx)

0 commit comments

Comments
 (0)