Skip to content

Commit

Permalink
Maybe fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia committed Sep 25, 2024
1 parent 20c3cf5 commit 0f0fe8c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions common/types_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ func CapellaUnblindSignedBlock(blindedBlock *eth2ApiV1Capella.SignedBlindedBeaco
}
}

//nolint:dupl
func DenebUnblindSignedBlock(blindedBlock *eth2ApiV1Deneb.SignedBlindedBeaconBlock, blockPayload *builderApiDeneb.ExecutionPayloadAndBlobsBundle) *eth2ApiV1Deneb.SignedBlockContents {
return &eth2ApiV1Deneb.SignedBlockContents{
SignedBlock: &deneb.SignedBeaconBlock{
Expand Down Expand Up @@ -282,7 +281,6 @@ func DenebUnblindSignedBlock(blindedBlock *eth2ApiV1Deneb.SignedBlindedBeaconBlo
}
}

//nolint:dupl
func ElectraUnblindSignedBlock(blindedBlock *eth2ApiV1Electra.SignedBlindedBeaconBlock, blockPayload *builderApiDeneb.ExecutionPayloadAndBlobsBundle) *eth2ApiV1Electra.SignedBlockContents {
return &eth2ApiV1Electra.SignedBlockContents{
SignedBlock: &electra.SignedBeaconBlock{
Expand Down
4 changes: 2 additions & 2 deletions services/api/optimistic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func TestSimulateBlock(t *testing.T) {
{
description: "block_already_known_capella",
version: spec.DataVersionCapella,
simulationError: errors.New(ErrBlockAlreadyKnown),
simulationError: errors.New(ErrBlockAlreadyKnown), //nolint:goerr113
},
{
description: "missing_trie_node_capella",
Expand All @@ -187,7 +187,7 @@ func TestSimulateBlock(t *testing.T) {
{
description: "block_already_known_deneb",
version: spec.DataVersionDeneb,
simulationError: errors.New(ErrBlockAlreadyKnown),
simulationError: errors.New(ErrBlockAlreadyKnown), //nolint:goerr113
},
{
description: "missing_trie_node_deneb",
Expand Down
1 change: 0 additions & 1 deletion services/api/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,6 @@ func (api *RelayAPI) checkProposerSignature(block *common.VersionedSignedBlinded
}
}

//nolint:gocognit
func (api *RelayAPI) handleGetPayload(w http.ResponseWriter, req *http.Request) {
api.getPayloadCallsInFlight.Add(1)
defer api.getPayloadCallsInFlight.Done()
Expand Down

0 comments on commit 0f0fe8c

Please sign in to comment.