Enable staticcheck linter (#5084)

This commit is contained in:
Håvard Anda Estensen 2022-08-17 07:17:45 +02:00 committed by GitHub
parent 8460fd8e25
commit ad865ac758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ linters:
- gosimple
- govet
- ineffassign
# - staticcheck # 1.18
- staticcheck
# - structcheck # 1.18
# - unused # 1.18
- varcheck

View File

@ -238,7 +238,7 @@ func EmbeddedServices(ctx context.Context, dirs datadir.Dirs, erigonDB kv.RoDB,
mining = direct.NewMiningClient(miningServer)
ff = rpchelper.New(ctx, eth, txPool, mining, func() {})
if snapshots != nil && snapshots.Cfg().Enabled {
if snapshots != nil && snapshots.Cfg().Enabled { // nolint: staticcheck
/*
txNums = make([]uint64, snapshots.BlocksAvailable()+1)
if err = snapshots.Bodies.View(func(bs []*snapshotsync.BodySegment) error {