Skip to content

Commit

Permalink
refactor: remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
bos-hieu authored Jul 27, 2024
1 parent cf995a9 commit 7e40d2b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions mongostore.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,7 @@ func (m *MongoStore) load(session *sessions.Session) error {
return err
}

if err := securecookie.DecodeMulti(session.Name(), s.Data, &session.Values,
m.Codecs...); err != nil {
return err
}

return nil
return securecookie.DecodeMulti(session.Name(), s.Data, &session.Values, m.Codecs...)
}

func (m *MongoStore) upsert(session *sessions.Session) error {
Expand Down

0 comments on commit 7e40d2b

Please sign in to comment.