Merge pull request #114738 from Fish-pro/cleanup/errorffmt

Remove duplicate fmt.Sprintf for logging
This commit is contained in:
Kubernetes Prow Robot
2023-01-03 18:26:10 -08:00
committed by GitHub

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)