diff options
Diffstat (limited to 'session.go')
-rw-r--r-- | session.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -24,8 +24,7 @@ const maxAttachmentSize = 32 << 20 // 32 MiB func generateToken() (string, error) { b := make([]byte, 32) - _, err := rand.Read(b) - if err != nil { + if _, err := rand.Read(b); err != nil { return "", err } return base64.URLEncoding.EncodeToString(b), nil |