mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unnecessary array conversion in log_array
This method is only ever called with an array since
0b2c49aa4d
.
This commit is contained in:
parent
70c5496542
commit
d4b667e819
1 changed files with 1 additions and 3 deletions
|
@ -149,9 +149,7 @@ module ActionDispatch
|
||||||
log_array(logger, message)
|
log_array(logger, message)
|
||||||
end
|
end
|
||||||
|
|
||||||
def log_array(logger, array)
|
def log_array(logger, lines)
|
||||||
lines = Array(array)
|
|
||||||
|
|
||||||
return if lines.empty?
|
return if lines.empty?
|
||||||
|
|
||||||
if logger.formatter && logger.formatter.respond_to?(:tags_text)
|
if logger.formatter && logger.formatter.respond_to?(:tags_text)
|
||||||
|
|
Loading…
Reference in a new issue