diff --git a/backend/integrations/oauth/soth/sothic/sothic.go b/backend/integrations/oauth/soth/sothic/sothic.go index 5057a1d2..060cfe18 100644 --- a/backend/integrations/oauth/soth/sothic/sothic.go +++ b/backend/integrations/oauth/soth/sothic/sothic.go @@ -140,8 +140,7 @@ func GetAuthURL(c *fiber.Ctx) (string, error) { return "", err } - err = StoreInSession(providerName, sess.Marshal(), c) - if err != nil { + if err := StoreInSession(providerName, sess.Marshal(), c); err != nil { return "", err } @@ -203,8 +202,7 @@ func CompleteUserAuth(c *fiber.Ctx) (soth.User, error) { return soth.User{}, err } - err = StoreInSession(providerName, sess.Marshal(), c) - if err != nil { + if err := StoreInSession(providerName, sess.Marshal(), c); err != nil { return soth.User{}, err }