Skip to content

Commit

Permalink
Update internal/storage/gorilla.go
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Julian <[email protected]>
  • Loading branch information
jr0d and joejulian authored Apr 7, 2021
1 parent e7aabee commit 3761dd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/storage/gorilla.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ func (c *GorillaUserInfoStore) Get(r *http.Request) (*v1alpha1.UserInfo, error)
session, _ := c.SessionStore.Get(r, c.SessionName)
if session == nil {
return nil, v1alpha1.UserDataStoreError(fmt.Sprintf("could not get session: %s", c.SessionName))
} else if session.IsNew {
}
if session.IsNew {
return nil, v1alpha1.UserDataStoreError(fmt.Sprintf("session did not exist: %s", c.SessionName))
}

Expand Down

0 comments on commit 3761dd8

Please sign in to comment.