Commit 666ba382 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Simplify registry-related code in project model

parent f60820ed
......@@ -1387,10 +1387,6 @@ class Project < ActiveRecord::Base
def has_root_container_repository_tags?
return false unless Gitlab.config.registry.enabled
ContainerRegistry::Path.new(self.full_path).tap do |path|
ContainerRepository.build_from_path(path).tap do |repository|
return repository.has_tags?
end
end
ContainerRepository.build_root_repository(self).has_tags?
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment