mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
remove excess error handling
This commit is contained in:
parent
0abb908638
commit
1a4b0ee09b
@ -358,12 +358,6 @@ func TestTryLoadCertFromDisk(t *testing.T) {
|
|||||||
}
|
}
|
||||||
defer os.RemoveAll(tmpdir)
|
defer os.RemoveAll(tmpdir)
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
t.Fatalf(
|
|
||||||
"failed to create cert and key with an error: %v",
|
|
||||||
err,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
err = WriteCert(tmpdir, "foo", rootCACert)
|
err = WriteCert(tmpdir, "foo", rootCACert)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf(
|
t.Fatalf(
|
||||||
|
Loading…
Reference in New Issue
Block a user