#757: small refactoring

This commit is contained in:
Vokhmin Alexey V 2013-02-19 21:02:49 +04:00
parent 3f7b38ad11
commit 484f1bc95b
1 changed files with 1 additions and 2 deletions

View File

@ -493,8 +493,7 @@ class BuildList < ActiveRecord::Base
def prepare_extra_repositories_and_containers
if save_to_repository && save_to_repository.platform.main?
self.extra_repositories = nil
self.extra_containers = nil
self.extra_repositories = self.extra_containers = nil
end
self.extra_repositories = extra_repositories.uniq if extra_repositories.present?
self.extra_containers = extra_containers.uniq if extra_containers.present?