Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-03 16:53:51 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-03 16:53:51 +0300
commitfc5eb3157082d923b80596485b302504ce0671ea (patch)
treeb56f503648a385b6d6895776bec40d6cebc33c2f /app/controllers/projects/registry
parentbaa00d542478759be225a45dc805d0314e1921d2 (diff)
Fix Rubocop offenses in code related to the registry
Diffstat (limited to 'app/controllers/projects/registry')
-rw-r--r--app/controllers/projects/registry/repositories_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/registry/repositories_controller.rb b/app/controllers/projects/registry/repositories_controller.rb
index ab4344bcf3c..cb1ea45dd04 100644
--- a/app/controllers/projects/registry/repositories_controller.rb
+++ b/app/controllers/projects/registry/repositories_controller.rb
@@ -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?