Fix Go vet errors for master golang
Co-authored-by: Rajalakshmi-Girish <rajalakshmi.girish1@ibm.com> Co-authored-by: Abhishek Kr Srivastav <Abhishek.kr.srivastav@ibm.com>
This commit is contained in:
committed by
Kishen Viswanathan
parent
7164c728c0
commit
9d10ddb060
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user