mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
Enable errname linter and fix findings (#13341)
This commit is contained in:
@@ -78,7 +78,7 @@ func (v *validator) SubmitAggregateAndProof(ctx context.Context, slot primitives
|
||||
s, ok := status.FromError(err)
|
||||
grpcNotFound := ok && s.Code() == codes.NotFound
|
||||
// handle http not found
|
||||
jsonErr := &httputil.DefaultErrorJson{}
|
||||
jsonErr := &httputil.DefaultJsonError{}
|
||||
httpNotFound := errors.As(err, &jsonErr) && jsonErr.Code == http.StatusNotFound
|
||||
|
||||
if grpcNotFound || httpNotFound {
|
||||
|
||||
Reference in New Issue
Block a user