From b17a9b557260bad4d5c24baa472d493ebb2fc835 Mon Sep 17 00:00:00 2001 From: carlad Date: Fri, 29 Jul 2016 17:42:44 +0200 Subject: [PATCH] update ruby syntax --- lib/travis/api/v3/queries/log.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/travis/api/v3/queries/log.rb b/lib/travis/api/v3/queries/log.rb index 2bc3147b..9c7035ce 100644 --- a/lib/travis/api/v3/queries/log.rb +++ b/lib/travis/api/v3/queries/log.rb @@ -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