diff --git a/auth/example_test.go b/auth/example_test.go index ee5f768..50d79af 100644 --- a/auth/example_test.go +++ b/auth/example_test.go @@ -173,7 +173,7 @@ func getToken(claims jwt.MapClaims, privateKey *rsa.PrivateKey) string { func getBase64E(e int) string { buf := new(bytes.Buffer) - _ = binary.Write(buf, binary.BigEndian, int32(e)) + _ = binary.Write(buf, binary.BigEndian, int32(e)) //nolint:gosec res := base64.RawURLEncoding.EncodeToString(buf.Bytes()) return res diff --git a/auth/jwt_test.go b/auth/jwt_test.go index cbbd12f..f919a96 100644 --- a/auth/jwt_test.go +++ b/auth/jwt_test.go @@ -131,7 +131,7 @@ func init() { func getBase64E(e int) string { buf := new(bytes.Buffer) - _ = binary.Write(buf, binary.BigEndian, int32(e)) + _ = binary.Write(buf, binary.BigEndian, int32(e)) //nolint:gosec res := base64.RawURLEncoding.EncodeToString(buf.Bytes()) return res