diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-05 14:44:35 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-05 14:44:35 +0200 |
commit | 000af87190bee6c99ad4e734818b3ba37c21a292 (patch) | |
tree | 1c3c3d9e6f831b817d33e3678eed19bf9d41021b /app/models | |
parent | c753975b087cf71d82712624fa5fcd9fa6d79844 (diff) | |
download | gitlab-ce-000af87190bee6c99ad4e734818b3ba37c21a292.tar.gz |
Remove redundant code from container registry classes
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/container_repository.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/container_repository.rb b/app/models/container_repository.rb index 463eb5b7d69..9682df3a586 100644 --- a/app/models/container_repository.rb +++ b/app/models/container_repository.rb @@ -28,7 +28,7 @@ class ContainerRepository < ActiveRecord::Base end def manifest - @manifest ||= client.repository_tags(self.path) + @manifest ||= client.repository_tags(path) end def tags @@ -45,7 +45,7 @@ class ContainerRepository < ActiveRecord::Base end def has_tags? - tags.to_a.any? + tags.any? end def root_repository? |