From 2420853020c9eccbeca2354cb991b5084e100764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=BCtke?= Date: Tue, 29 Jul 2025 18:53:00 -0400 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- performance/theme_runner.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/performance/theme_runner.rb b/performance/theme_runner.rb index 87b110dd..55529d9a 100644 --- a/performance/theme_runner.rb +++ b/performance/theme_runner.rb @@ -56,7 +56,7 @@ class ThemeRunner end end - attr_accessor :tests + attr_reader :tests # `compile` will test just the compilation portion of liquid without any templates def compile_all @@ -105,8 +105,8 @@ class ThemeRunner tmpl, layout, assigns = compiled_test.values_at(:tmpl, :layout, :assigns) if layout assigns['content_for_layout'] = tmpl.render!(assigns, @strictness) - layout = layout.render!(assigns, @strictness) - layout + rendered_layout = layout.render!(assigns, @strictness) + rendered_layout else tmpl.render!(assigns, @strictness) end