1
0
Fork 0
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:
Eugene Kenny 2021-05-06 12:33:38 +01:00
parent 70c5496542
commit d4b667e819

View file

@ -149,9 +149,7 @@ module ActionDispatch
log_array(logger, message)
end
def log_array(logger, array)
lines = Array(array)
def log_array(logger, lines)
return if lines.empty?
if logger.formatter && logger.formatter.respond_to?(:tags_text)