build: bump golangci-lint to 2.1.6
This commit is contained in:
1 parent
da03728cd7
commit
1d494ff315
15 files changed
+515
-436
No files matched your search
@@ -72,7 +72,7 @@ func (s *Server) GetTokenExpirationTime(fallback time.Duration) time.Duration {
|
||||
|
||||
// GenerateKey generates a key of 512 bits.
|
||||
func GenerateKey() ([]byte, error) {
|
||||
b := make([]byte, 64) //nolint:gomnd
|
||||
b := make([]byte, 64) //nolint:mnd
|
||||
_, err := rand.Read(b)
|
||||
// Note that err == nil only if we read len(b) bytes.
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user