mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Move the least common check to the end of the conditional
This commit is contained in:
parent
9d6f7681af
commit
6f8aa2b17d
1 changed files with 1 additions and 1 deletions
|
@ -439,7 +439,7 @@ module ActionDispatch
|
|||
end
|
||||
|
||||
def write_cookie?(cookie)
|
||||
request.ssl? || request.host.end_with?(".onion") || !cookie[:secure] || always_write_cookie
|
||||
request.ssl? || !cookie[:secure] || always_write_cookie || request.host.end_with?(".onion")
|
||||
end
|
||||
|
||||
def handle_options(options)
|
||||
|
|
Loading…
Reference in a new issue