Address comments

This commit is contained in:
Peter Zhu
2020-10-26 16:16:30 -04:00
parent 0bedc71854
commit 5c082472a1
5 changed files with 19 additions and 15 deletions
+1 -1
View File
@@ -199,7 +199,7 @@ module Liquid
end
def render_to_output_buffer(context, output)
raise "Can only render when frozen" unless frozen?
freeze unless frozen?
context.resource_limits.increment_render_score(@nodelist.length)