🔥 Removed unused SessionGet argument
This commit is contained in:
parent
644ca6c78c
commit
869deb6305
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue