Skip to content

Commit

Permalink
Fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kirugan committed Sep 20, 2023
1 parent 2a79dbe commit 3bd9fc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion l1/eth_subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (s *EthSubscriber) FinalisedHeight(ctx context.Context) (uint64, error) {
return 0, fmt.Errorf("get finalised Ethereum block: %w", err)
}

number, ok := finalisedBlock["number"]
number, ok := finalisedBlock["number"] //nolint:gosec
if !ok {
return 0, fmt.Errorf("number field not present in Ethereum block")
}
Expand Down
2 changes: 1 addition & 1 deletion p2p/starknet/starknet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/stretchr/testify/require"
)

// nolint: gocritic
//nolint: gocritic

Check failure on line 17 in p2p/starknet/starknet_test.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard -s default (gci)
func TestClientHandler(t *testing.T) {
mockCtrl := gomock.NewController(t)
t.Cleanup(mockCtrl.Finish)
Expand Down

0 comments on commit 3bd9fc2

Please sign in to comment.