Remove duplicate fmt.Sprintf for logging

This commit is contained in:
chen zechun 2022-12-29 17:39:10 +08:00
parent 7eb9a75bf9
commit 94ea99dab4

View File

@ -45,7 +45,7 @@ func TestErrorNew(t *testing.T) {
t.Errorf("expected to not be %s", metav1.StatusReasonConflict)
}
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) {
t.Errorf("expected to not be %s", metav1.StatusReasonInvalid)