mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
Linting
This commit is contained in:
@@ -134,7 +134,7 @@ func (ctx *Context) SetFlashBytes(key string, value []byte) {
|
||||
fasthttp.ReleaseCookie(c)
|
||||
}
|
||||
|
||||
// Sessionreturns the current session store, returns nil if provider is ""
|
||||
// Session returns the current session store, returns nil if provider is ""
|
||||
func (ctx *Context) Session() store.IStore {
|
||||
if ctx.station.sessionManager == nil || ctx.station.config.Sessions.Provider == "" { //the second check can be changed on runtime, users are able to turn off the sessions by setting provider to ""
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user