Enable errname linter and fix findings (#13341)

This commit is contained in:
Justin Traglia
2023-12-14 21:26:48 -06:00
committed by GitHub
parent 0fde4a22e1
commit 4a374435c0
45 changed files with 205 additions and 204 deletions

View File

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