Skip to content

Commit 7e5fd4d

Browse files
committed
chore: actually placate the linter
1 parent e3f8ff3 commit 7e5fd4d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

libevm/precompiles/p256verify/p256verify_test.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@ import (
2222
"crypto/rand"
2323
"testing"
2424

25+
"github.com/holiman/uint256"
26+
"github.com/stretchr/testify/assert"
27+
"github.com/stretchr/testify/require"
28+
2529
"github.com/ava-labs/libevm/common"
2630
"github.com/ava-labs/libevm/core/vm"
2731
"github.com/ava-labs/libevm/libevm"
2832
"github.com/ava-labs/libevm/libevm/ethtest"
2933
"github.com/ava-labs/libevm/libevm/hookstest"
3034
"github.com/ava-labs/libevm/params"
31-
"github.com/holiman/uint256"
32-
"github.com/stretchr/testify/assert"
33-
"github.com/stretchr/testify/require"
3435
)
3536

3637
// ulerdoganTestCase is the test case from
@@ -113,7 +114,9 @@ func BenchmarkPrecompile(b *testing.B) {
113114
var p Precompile
114115

115116
for range b.N {
116-
p.Run(in) //nolint:errcheck // Always nil
117+
// Explicitly drop return values to placate the linter. The error is
118+
// always nil and the input is tested above.
119+
_, _ = p.Run(in)
117120
}
118121
}
119122

0 commit comments

Comments
 (0)