diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-31 15:10:15 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-31 15:10:15 +0200 |
commit | 83d1fe9b5aeb947c1387666205ecaca81f2bf3a2 (patch) | |
tree | f5cd91c67ffbc179f051b9fd75abe6a281b2827c /lib | |
parent | 00319e595ab52906d12ef027a10e08ac92ea1337 (diff) | |
download | gitlab-ce-83d1fe9b5aeb947c1387666205ecaca81f2bf3a2.tar.gz |
Add serveral minor improvements to container registry
Diffstat (limited to 'lib')
-rw-r--r-- | lib/container_registry/tag.rb | 4 |
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 |