Read about our upcoming Code of Conduct on this issue

Commit fc5eb315 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Fix Rubocop offenses in code related to the registry

parent d4525c458644
......@@ -31,7 +31,7 @@ def image
#
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 @@
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
......
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