mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-26 13:45:13 -07:00
Freeze the body for case
This commit is contained in:
@@ -19,7 +19,7 @@ module Liquid
|
|||||||
end
|
end
|
||||||
|
|
||||||
def parse(tokens)
|
def parse(tokens)
|
||||||
body = new_body
|
body = case_body = new_body
|
||||||
body = @blocks.last.attachment while parse_body(body, tokens)
|
body = @blocks.last.attachment while parse_body(body, tokens)
|
||||||
@blocks.each do |condition|
|
@blocks.each do |condition|
|
||||||
body = condition.attachment
|
body = condition.attachment
|
||||||
@@ -28,6 +28,7 @@ module Liquid
|
|||||||
body.freeze
|
body.freeze
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
case_body.freeze
|
||||||
end
|
end
|
||||||
|
|
||||||
def nodelist
|
def nodelist
|
||||||
|
|||||||
Reference in New Issue
Block a user