Browse Source

🔥 Removed unused SessionGet argument

master v0.5.1
Maxim Lebedev 6 months ago
parent
commit
869deb6305
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
  1. 2
      session.go

2
session.go

@ -60,7 +60,7 @@ func SessionWithConfig(config SessionConfig) Interceptor {
}
// 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)
if !ok {
return nil, fmt.Errorf("%s session store not found", key)

Loading…
Cancel
Save