Skip to content

Commit

Permalink
fix error idioms
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Jun 11, 2024
1 parent 98f1b49 commit bda828a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions backend/integrations/oauth/soth/sothic/sothic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit bda828a

Please sign in to comment.