mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-26 13:45:13 -07:00
code styling
This commit is contained in:
@@ -89,9 +89,7 @@ module Liquid
|
|||||||
|
|
||||||
# Cache only exists during parsing
|
# Cache only exists during parsing
|
||||||
if cache
|
if cache
|
||||||
return cache[markup] if cache.key?(markup)
|
cache.fetch(markup) { inner_parse(markup, ss, cache).freeze }
|
||||||
|
|
||||||
cache[markup] = inner_parse(markup, ss, cache).freeze
|
|
||||||
else
|
else
|
||||||
inner_parse(markup, ss, nil).freeze
|
inner_parse(markup, ss, nil).freeze
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user