Skip to content

Commit

Permalink
Try to fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia committed Sep 25, 2024
1 parent acb5536 commit 6ba1b5d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
uses: actions/checkout@v3

- name: Install gofumpt
run: go install mvdan.cc/gofumpt@v0.4.0
run: go install mvdan.cc/gofumpt@latest

- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@v0.4.6
run: go install honnef.co/go/tools/cmd/staticcheck@latest

- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.0
Expand Down
5 changes: 3 additions & 2 deletions services/api/optimistic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package api
import (
"context"
"encoding/json"
"errors"
"fmt"
"math/big"
"net/http"
Expand Down Expand Up @@ -166,7 +167,7 @@ func TestSimulateBlock(t *testing.T) {
{
description: "block_already_known_capella",
version: spec.DataVersionCapella,
simulationError: fmt.Errorf(ErrBlockAlreadyKnown), //nolint:goerr113
simulationError: errors.New(ErrBlockAlreadyKnown),
},
{
description: "missing_trie_node_capella",
Expand All @@ -186,7 +187,7 @@ func TestSimulateBlock(t *testing.T) {
{
description: "block_already_known_deneb",
version: spec.DataVersionDeneb,
simulationError: fmt.Errorf(ErrBlockAlreadyKnown), //nolint:goerr113
simulationError: errors.New(ErrBlockAlreadyKnown),
},
{
description: "missing_trie_node_deneb",
Expand Down
2 changes: 2 additions & 0 deletions services/api/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func TestBuilderBlockRequestToSignedBuilderBid(t *testing.T) {
},
},
},
//nolint:dupl
{
name: "Deneb",
reqPayload: &common.VersionedSubmitBlockRequest{
Expand Down Expand Up @@ -115,6 +116,7 @@ func TestBuilderBlockRequestToSignedBuilderBid(t *testing.T) {
},
},
},
//nolint:dupl
{
name: "Electra",
reqPayload: &common.VersionedSubmitBlockRequest{
Expand Down

0 comments on commit 6ba1b5d

Please sign in to comment.