Sessions: Fix unhandled error (#1349)

This commit is contained in:
Garrett Gu 2021-07-15 10:47:43 -05:00 committed by GitHub
parent fdd83c3b65
commit 46a3773c8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,9 @@ func (c *Config) DecodeSession() (Session, error) {
}
hash := sha256.New()
hash.Write([]byte(c.Secret))
if _, err := hash.Write([]byte(c.Secret)); err != nil {
return result, err
}
var b []byte