Skip to content

Commit

Permalink
Add nolint:gocyclo comments for two functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia committed Apr 29, 2024
1 parent 0eca3a2 commit 0de3cfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/electra/beaconblockbody_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ func (b *BeaconBlockBody) MarshalJSON() ([]byte, error) {
}

// UnmarshalJSON implements json.Unmarshaler.
//
//nolint:gocyclo
func (b *BeaconBlockBody) UnmarshalJSON(input []byte) error {
raw, err := codecs.RawJSON(&beaconBlockBodyJSON{}, input)
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions spec/versionedsignedbeaconblock.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ func (v *VersionedSignedBeaconBlock) Graffiti() ([32]byte, error) {
}

// Attestations returns the attestations of the beacon block.
//
//nolint:gocyclo
func (v *VersionedSignedBeaconBlock) Attestations() ([]VersionedAttestation, error) {
switch v.Version {
case DataVersionPhase0:
Expand Down

0 comments on commit 0de3cfd

Please sign in to comment.