Read about our upcoming Code of Conduct on this issue

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

Simplify registry-related code in project model

parent a9b3afa91313
......@@ -1387,10 +1387,6 @@ def pending_delete_twin
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