Skip to content

Commit 804c220

Browse files
Fix Go vet errors for master golang
Co-authored-by: Rajalakshmi-Girish <[email protected]> Co-authored-by: Abhishek Kr Srivastav <[email protected]> Kubernetes-commit: d58b536147a6acfc6bfc6f66de2fe3af973ee88d
1 parent 8a9438e commit 804c220

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rest/client_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func TestHTTPProxy(t *testing.T) {
299299
}))
300300
defer testProxyServer.Close()
301301

302-
t.Logf(testProxyServer.URL)
302+
t.Log(testProxyServer.URL)
303303

304304
u, err := url.Parse(testProxyServer.URL)
305305
if err != nil {

tools/remotecommand/v4.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,5 @@ func (d *errorDecoderV4) decode(message []byte) error {
115115
return errors.New("error stream protocol error: unknown error")
116116
}
117117

118-
return fmt.Errorf(status.Message)
118+
return errors.New(status.Message)
119119
}

transport/cache_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func TestTLSConfigKey(t *testing.T) {
159159

160160
shouldCacheA := valueA.Proxy == nil
161161
if shouldCacheA != canCacheA {
162-
t.Errorf("Unexpected canCache=false for " + nameA)
162+
t.Error("Unexpected canCache=false for " + nameA)
163163
}
164164

165165
configIsNotEmpty := !reflect.DeepEqual(*valueA, Config{})

0 commit comments

Comments
 (0)