Merge pull request #129519 from kishen-v/automated-cherry-pick-of-#127422-upstream-release-1.31

Automated cherry pick of #127422: Fix Go vet errors for master golang
This commit is contained in:
Kubernetes Prow Robot
2025-01-22 11:10:37 -08:00
committed by GitHub
111 changed files with 345 additions and 318 deletions

View File

@@ -19,7 +19,6 @@ package renewal
import (
"crypto"
"crypto/x509"
"fmt"
"net"
"os"
"path/filepath"
@@ -265,7 +264,7 @@ func TestPKICertificateReadWriterExists(t *testing.T) {
}
}()
filename := "testfile"
tmpfilepath := filepath.Join(tmpdir, fmt.Sprintf(filename+".crt"))
tmpfilepath := filepath.Join(tmpdir, filename+".crt")
err = os.WriteFile(tmpfilepath, nil, 0644)
if err != nil {
t.Fatalf("Couldn't write file: %v", err)