From 46a3773c8ece208d2628f82d0c45d83edde168f9 Mon Sep 17 00:00:00 2001 From: Garrett Gu Date: Thu, 15 Jul 2021 10:47:43 -0500 Subject: [PATCH] Sessions: Fix unhandled error (#1349) --- internal/hub/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/hub/config.go b/internal/hub/config.go index 5c2a97a71..e03470d71 100644 --- a/internal/hub/config.go +++ b/internal/hub/config.go @@ -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