Skip to content

Commit

Permalink
Update golangci-lint to version v1.60.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RyuaNerin committed Aug 17, 2024
1 parent 286e134 commit bdd69df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint-and-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions internal/math.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand All @@ -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")
}
Expand Down
2 changes: 1 addition & 1 deletion internal/subtle/xor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bdd69df

Please sign in to comment.