update ruby syntax

This commit is contained in:
carlad 2016-07-29 17:42:44 +02:00
parent 8e71c4501d
commit b17a9b5572

View File

@ -6,9 +6,7 @@ module Travis::API::V3
#if the log exists and has not bee archived yet, then collect the log_parts and return the contents
unless log.nil? || !log.archived_at.nil?
log_parts = Models::Log::Part.where(log_id: log.id)
contents = log_parts.each do |log_part|
log_part.content
end
log_parts.each { |log_part| contents << log_part.content }
contents
else
#go look in S3