Commit fc5eb315 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix Rubocop offenses in code related to the registry

parent baa00d54
...@@ -31,7 +31,7 @@ module Projects ...@@ -31,7 +31,7 @@ module Projects
# #
def ensure_root_container_repository! def ensure_root_container_repository!
ContainerRegistry::Path.new(@project.full_path).tap do |path| ContainerRegistry::Path.new(@project.full_path).tap do |path|
return if path.has_repository? break if path.has_repository?
ContainerRepository.build_from_path(path).tap do |repository| ContainerRepository.build_from_path(path).tap do |repository|
repository.save if repository.has_tags? repository.save if repository.has_tags?
......
...@@ -446,7 +446,7 @@ describe "Public Project Access", feature: true do ...@@ -446,7 +446,7 @@ describe "Public Project Access", feature: true do
let(:container_repository) { create(:container_repository) } let(:container_repository) { create(:container_repository) }
before do before do
stub_container_registry_tags(repository: :any, tags:['latest']) stub_container_registry_tags(repository: :any, tags: ['latest'])
stub_container_registry_config(enabled: true) stub_container_registry_config(enabled: true)
project.container_repositories << container_repository project.container_repositories << container_repository
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