diff --git a/.github/workflows/lint-and-build.yaml b/.github/workflows/lint-and-build.yaml index a660ea8..b5919d0 100644 --- a/.github/workflows/lint-and-build.yaml +++ b/.github/workflows/lint-and-build.yaml @@ -54,12 +54,12 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.59.0 + version: v1.60.1 - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.59.0 + version: v1.60.1 args: --build-tags purego go-test: diff --git a/internal/math.go b/internal/math.go index 473194f..17f5e2f 100644 --- a/internal/math.go +++ b/internal/math.go @@ -33,7 +33,7 @@ func CeilDiv(a, b int) int { } // [0, max) -func ReadInt(r io.Reader, max int) (int, error) { +func ReadInt(r io.Reader, max int) (int, error) { //nolint:predeclared var buf [8]byte bitSize := uint(bits.Len64(uint64(max))) @@ -55,7 +55,7 @@ func ReadInt(r io.Reader, max int) (int, error) { } // ReadBigInt returns a uniform random value in [0, max). It panics if max <= 0. -func ReadBigInt(dst *big.Int, rand io.Reader, buf []byte, max *big.Int) (bufNew []byte, err error) { +func ReadBigInt(dst *big.Int, rand io.Reader, buf []byte, max *big.Int) (bufNew []byte, err error) { //nolint:predeclared if max.Sign() <= 0 { panic("crypto/rand: argument to Int is <= 0") } diff --git a/internal/subtle/xor_test.go b/internal/subtle/xor_test.go index 9339845..66026af 100644 --- a/internal/subtle/xor_test.go +++ b/internal/subtle/xor_test.go @@ -48,7 +48,7 @@ func TestXOR(t *testing.T) { } } -func min(a, b []byte) int { +func min(a, b []byte) int { //nolint:predeclared n := len(a) if len(b) < n { n = len(b)