mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 11:20:41 -07:00
Return nil in Document#block_delimiter rather than an empty array.
The block delimiter is normally a string, so nil makes more sense when there is no delimiter. We also don't want to allocate an array for no reason.
This commit is contained in:
@@ -7,7 +7,7 @@ module Liquid
|
|||||||
|
|
||||||
# There isn't a real delimiter
|
# There isn't a real delimiter
|
||||||
def block_delimiter
|
def block_delimiter
|
||||||
[]
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
# Document blocks don't need to be terminated since they are not actually opened
|
# Document blocks don't need to be terminated since they are not actually opened
|
||||||
|
|||||||
Reference in New Issue
Block a user