Skip to content

Commit

Permalink
removing superfluous getters/setters
Browse files Browse the repository at this point in the history
  • Loading branch information
afshin committed Apr 24, 2016
1 parent 21f9a48 commit 1a0f1ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions session.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func SessionGet(app *forest.App, manager SessionManager) func(ctx *bear.Context)
return func(ctx *bear.Context) {
cookieName := forest.SessionID
createEmptySession := func(sessionID string) {
path := app.CookiePath()
path := app.Config.CookiePath
if path == "" {
path = "/"
}
Expand Down Expand Up @@ -86,7 +86,7 @@ func SessionGet(app *forest.App, manager SessionManager) func(ctx *bear.Context)
// if it's not set or if it's set to true, the session is refreshed.
refresh, ok := ctx.Get(forest.SessionRefresh).(bool)
if !ok || refresh {
path := app.CookiePath()
path := app.Config.CookiePath
if path == "" {
path = "/"
}
Expand Down

0 comments on commit 1a0f1ad

Please sign in to comment.