mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Merge pull request #114738 from Fish-pro/cleanup/errorffmt
Remove duplicate fmt.Sprintf for logging
This commit is contained in:
commit
41b442534d
@ -45,7 +45,7 @@ func TestErrorNew(t *testing.T) {
|
|||||||
t.Errorf("expected to not be %s", metav1.StatusReasonConflict)
|
t.Errorf("expected to not be %s", metav1.StatusReasonConflict)
|
||||||
}
|
}
|
||||||
if IsNotFound(err) {
|
if IsNotFound(err) {
|
||||||
t.Errorf(fmt.Sprintf("expected to not be %s", metav1.StatusReasonNotFound))
|
t.Errorf("expected to not be %s", metav1.StatusReasonNotFound)
|
||||||
}
|
}
|
||||||
if IsInvalid(err) {
|
if IsInvalid(err) {
|
||||||
t.Errorf("expected to not be %s", metav1.StatusReasonInvalid)
|
t.Errorf("expected to not be %s", metav1.StatusReasonInvalid)
|
||||||
|
Loading…
Reference in New Issue
Block a user