git.iko.soy/typeable/oauth2-proxy
on master help sign in
Merge pull request #2894 from oauth2-proxy/fix-lint

Fix linting after updating golangci-lint to 1.62.2

commitcdcc62014d7c69d4714b9cdeb35ffb56cfac488f authorJoel Speed <Joel.speed@hotmail.co.uk> dateTue 31 Dec 2024, 19:19 (2 years ago) parentc1a21aaf41a686
1 file changed+2−2
providers/logingov.go+2−2
providers/logingov.go+2−2
@@ -38,8 +38,8 @@ var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
3838func randSeq(n int) string {
3939 b := make([]rune, n)
4040 for i := range b {
41− max := big.NewInt(int64(len(letters)))
42− bigN, err := rand.Int(rand.Reader, max)
41+ maxInt := big.NewInt(int64(len(letters)))
42+ bigN, err := rand.Int(rand.Reader, maxInt)
4343 if err != nil {
4444 // This should never happen
4545 panic(err)