summaryrefslogtreecommitdiff
path: root/app/controllers/projects
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-06 10:23:51 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-06 10:23:51 +0200
commit714c408f222cc3bfef577b477f7bab0556f50599 (patch)
treef387bc1f5e2f6fbab5df8ecd8ad88fa863f3a082 /app/controllers/projects
parent82dea6cffe339456c5ba0fd090464926e970dccf (diff)
downloadgitlab-ce-714c408f222cc3bfef577b477f7bab0556f50599.tar.gz
Add minor improvements to container registry code
Diffstat (limited to 'app/controllers/projects')
-rw-r--r--app/controllers/projects/registry/tags_controller.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/controllers/projects/registry/tags_controller.rb b/app/controllers/projects/registry/tags_controller.rb
index 7a9f290e946..d689cade3ab 100644
--- a/app/controllers/projects/registry/tags_controller.rb
+++ b/app/controllers/projects/registry/tags_controller.rb
@@ -15,15 +15,13 @@ module Projects
private
- def repository
+ def image
@image ||= project.container_repositories
.find(params[:repository_id])
end
def tag
- return render_404 unless params[:id].present?
-
- @tag ||= repository.tag(params[:id])
+ @tag ||= image.tag(params[:id])
end
end
end