chore: upgrade golangci-lint

This commit is contained in:
Oleg Lobanov committed 2021-07-26 12:00:05 +02:00
1 parent 201329abce
commit 34d7d2c8c4
17 files changed
+37 -45

No files matched your search

+2 -2
View File
@@ -49,9 +49,9 @@ func (s *Server) Clean() {
s.BaseURL = strings.TrimSuffix(s.BaseURL, "/")
}
// GenerateKey generates a key of 256 bits.
// GenerateKey generates a key of 512 bits.
func GenerateKey() ([]byte, error) {
b := make([]byte, 64)
b := make([]byte, 64) //nolint:gomnd
_, err := rand.Read(b)
// Note that err == nil only if we read len(b) bytes.
if err != nil {