summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-31 15:10:15 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-31 15:10:15 +0200
commit83d1fe9b5aeb947c1387666205ecaca81f2bf3a2 (patch)
treef5cd91c67ffbc179f051b9fd75abe6a281b2827c /lib
parent00319e595ab52906d12ef027a10e08ac92ea1337 (diff)
downloadgitlab-ce-83d1fe9b5aeb947c1387666205ecaca81f2bf3a2.tar.gz
Add serveral minor improvements to container registry
Diffstat (limited to 'lib')
-rw-r--r--lib/container_registry/tag.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/container_registry/tag.rb b/lib/container_registry/tag.rb
index d653deb3bf1..d00e6191e7e 100644
--- a/lib/container_registry/tag.rb
+++ b/lib/container_registry/tag.rb
@@ -36,9 +36,7 @@ module ContainerRegistry
end
def digest
- return @digest if defined?(@digest)
-
- @digest = client.repository_tag_digest(repository.path, name)
+ @digest ||= client.repository_tag_digest(repository.path, name)
end
def config_blob