Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.0 on 2022-01-18 at 14:00 UTC+1 (a few minutes of down time)

Commit bfdd34c5 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Implement memoization in project correctly this time

parent 32f9e3cd8227
...@@ -486,7 +486,9 @@ def container_registry_url ...@@ -486,7 +486,9 @@ def container_registry_url
end end
def has_container_registry_tags? def has_container_registry_tags?
@images ||= container_repositories.to_a.any?(&:has_tags?) || return @images if defined?(@images)
@images = container_repositories.to_a.any?(&:has_tags?) ||
has_root_container_repository_tags? has_root_container_repository_tags?
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment