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
commit 41b442534d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)