Skip to content

Commit

Permalink
Fix Go vet errors for master golang
Browse files Browse the repository at this point in the history
Co-authored-by: Rajalakshmi-Girish <rajalakshmi.girish1@ibm.com>
Co-authored-by: Abhishek Kr Srivastav <Abhishek.kr.srivastav@ibm.com>

Kubernetes-commit: 9d10ddb0608aa20ce287c89be879f888f5823cf9
  • Loading branch information
srivastav-abhishek authored and k8s-publishing-bot committed Sep 12, 2024
1 parent 5e3e8ea commit e935feb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rest/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func TestHTTPProxy(t *testing.T) {
}))
defer testProxyServer.Close()

t.Logf(testProxyServer.URL)
t.Log(testProxyServer.URL)

u, err := url.Parse(testProxyServer.URL)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion tools/remotecommand/v4.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,5 @@ func (d *errorDecoderV4) decode(message []byte) error {
return errors.New("error stream protocol error: unknown error")
}

return fmt.Errorf(status.Message)
return errors.New(status.Message)
}
2 changes: 1 addition & 1 deletion transport/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func TestTLSConfigKey(t *testing.T) {

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

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

0 comments on commit e935feb

Please # to comment.