Sessions: Fix unhandled error (#1349)
This commit is contained in:
parent
fdd83c3b65
commit
46a3773c8e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue