Skip to content

Commit

Permalink
Return on error.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed May 27, 2024
1 parent e298183 commit bb34776
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/block/analyze/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ func (c *command) analyzeAttestations(ctx context.Context, block *spec.Versioned
case spec.DataVersionElectra:
analysis, err = c.electraAnalysis(ctx, slot, attestation.Electra, blockVotes, spec.DataVersionElectra)
default:
return fmt.Errorf("unknown version %s\n", attestation.Version)

return fmt.Errorf("unknown version %s", attestation.Version)
}
if err != nil {
return err
}

// Calculate score and value.
Expand Down

0 comments on commit bb34776

Please sign in to comment.