🔥 Removed unused SessionGet argument

This commit is contained in:
Maxim Lebedev 2022-01-05 16:49:59 +05:00
parent 644ca6c78c
commit 869deb6305
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ func SessionWithConfig(config SessionConfig) Interceptor {
} }
// SessionGet returns a named session. // SessionGet returns a named session.
func SessionGet(ctx *http.RequestCtx, name string) (*session.Store, error) { func SessionGet(ctx *http.RequestCtx) (*session.Store, error) {
store, ok := ctx.UserValue(key).(*session.Store) store, ok := ctx.UserValue(key).(*session.Store)
if !ok { if !ok {
return nil, fmt.Errorf("%s session store not found", key) return nil, fmt.Errorf("%s session store not found", key)