Skip to content

Commit e935feb

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: 9d10ddb0608aa20ce287c89be879f888f5823cf9
1 parent 5e3e8ea commit e935feb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rest/client_test.go

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)