Fix Rubocop offenses in code related to the registry
This commit is contained in:
parent
baa00d5424
commit
fc5eb31570
|
@ -31,7 +31,7 @@ module Projects
|
|||
#
|
||||
def ensure_root_container_repository!
|
||||
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|
|
||||
repository.save if repository.has_tags?
|
||||
|
|
|
@ -446,7 +446,7 @@ describe "Public Project Access", feature: true do
|
|||
let(:container_repository) { create(:container_repository) }
|
||||
|
||||
before do
|
||||
stub_container_registry_tags(repository: :any, tags:['latest'])
|
||||
stub_container_registry_tags(repository: :any, tags: ['latest'])
|
||||
stub_container_registry_config(enabled: true)
|
||||
project.container_repositories << container_repository
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue