aboutsummaryrefslogtreecommitdiff
path: root/session.go
diff options
context:
space:
mode:
Diffstat (limited to 'session.go')
-rw-r--r--session.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/session.go b/session.go
index 9d8921c..4bf8619 100644
--- a/session.go
+++ b/session.go
@@ -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