1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-05-31 23:19:50 +02:00

Merge pull request #2894 from oauth2-proxy/fix-lint

Fix linting after updating golangci-lint to 1.62.2
This commit is contained in:
Joel Speed 2024-12-31 19:19:57 +07:00 committed by GitHub
commit cdcc62014d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,8 +38,8 @@ var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
func randSeq(n int) string {
b := make([]rune, n)
for i := range b {
max := big.NewInt(int64(len(letters)))
bigN, err := rand.Int(rand.Reader, max)
maxInt := big.NewInt(int64(len(letters)))
bigN, err := rand.Int(rand.Reader, maxInt)
if err != nil {
// This should never happen
panic(err)