Skip to content

Commit

Permalink
--no-edit
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasjpr committed May 21, 2022
1 parent c5d24bf commit 1372a26
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/provider.cr
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ module Session
# Loads the session from a HTTP::Cookie
def load_from(request_cookies : HTTP::Cookies) : SessionId(T)?
self.cookies = request_cookies if self.is_a? CookieStore(T)

cookie = request_cookies[session_key]?
return @current_session = create if cookie.nil?

@current_session = if store_session = self[cookie.not_nil!.value]?
store_session
else
Expand Down

0 comments on commit 1372a26

Please sign in to comment.