diff --git a/app/models/platform.rb b/app/models/platform.rb index c3af78768..1f043350e 100644 --- a/app/models/platform.rb +++ b/app/models/platform.rb @@ -238,7 +238,7 @@ class Platform < ActiveRecord::Base next false unless product pbl = product.product_build_lists.for_status(ProductBuildList::BUILD_COMPLETED).recent.first next false unless pbl - result = pbl.results.results.find{ |r| r['file_name'] =~ /-#{arch}.tar.gz$/ } + result = pbl.results.find{ |r| r['file_name'] =~ /-#{arch}.tar.gz$/ } result.present? ? result['sha1'] : false end end