Skip to content

Commit

Permalink
making diff smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Dec 17, 2019
1 parent 99a8a87 commit d3e2f88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rack/session/abstract/id.rb
Expand Up @@ -251,7 +251,6 @@ def context(env, app=@app)
prepare_session(env)
status, headers, body = app.call(env)
commit_session(env, status, headers, body)
[status, headers, body]
end

private
Expand Down Expand Up @@ -358,7 +357,7 @@ def commit_session(env, status, headers, body)

if options[:drop] || options[:renew]
session_id = destroy_session(env, session.id || generate_sid, options)
return unless session_id
return [status, headers, body] unless session_id
end

return [status, headers, body] unless commit_session?(env, session, options)
Expand Down

0 comments on commit d3e2f88

Please sign in to comment.