internal/ethapi: delete needless error check (#29127)

This commit is contained in:
Tom 2024-03-06 13:23:35 +08:00 committed by GitHub
parent 66e1a6ef49
commit 588c5480fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1244,7 +1244,7 @@ func TestFillBlobTransaction(t *testing.T) {
if len(tc.err) > 0 { if len(tc.err) > 0 {
if err == nil { if err == nil {
t.Fatalf("missing error. want: %s", tc.err) t.Fatalf("missing error. want: %s", tc.err)
} else if err != nil && err.Error() != tc.err { } else if err.Error() != tc.err {
t.Fatalf("error mismatch. want: %s, have: %s", tc.err, err.Error()) t.Fatalf("error mismatch. want: %s, have: %s", tc.err, err.Error())
} }
return return