1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

remove useless conditional

We always have a response object in controller instances, so we can
remove this conditional
This commit is contained in:
Aaron Patterson 2015-08-26 10:29:24 -07:00
parent 44454bdd8b
commit 109fb8e7a9

View file

@ -210,7 +210,7 @@ module ActionController
# Tests if render or redirect has already happened.
def performed?
response_body || (response && response.committed?)
response_body || response.committed?
end
def dispatch(name, request, response) #:nodoc: