Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
avalonche committed Dec 31, 2024
1 parent 75c63b0 commit 46235f6
Show file tree
Hide file tree
Showing 2 changed files with 5 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 @@ -50,10 +50,10 @@ jobs:
run: go install mvdan.cc/[email protected]

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

- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/[email protected].0
run: go install github.com/golangci/golangci-lint/cmd/[email protected].1

- name: Lint
run: make lint
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), //nolint:goerr113
},
{
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), //nolint:goerr113
},
{
description: "missing_trie_node_deneb",
Expand Down

0 comments on commit 46235f6

Please sign in to comment.