mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #15213 from tgxworld/remove_redundant_code
Remove redundant code.
This commit is contained in:
commit
b17f6e6877
1 changed files with 2 additions and 3 deletions
|
@ -32,9 +32,8 @@ module ActionDispatch
|
|||
end
|
||||
|
||||
def render_html(status)
|
||||
found = false
|
||||
path = "#{public_path}/#{status}.#{I18n.locale}.html" if I18n.locale
|
||||
path = "#{public_path}/#{status}.html" unless path && (found = File.exist?(path))
|
||||
path = "#{public_path}/#{status}.#{I18n.locale}.html"
|
||||
path = "#{public_path}/#{status}.html" unless (found = File.exist?(path))
|
||||
|
||||
if found || File.exist?(path)
|
||||
render_format(status, 'text/html', File.read(path))
|
||||
|
|
Loading…
Reference in a new issue