mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -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
|
||||
def block_delimiter
|
||||
[]
|
||||
nil
|
||||
end
|
||||
|
||||
# Document blocks don't need to be terminated since they are not actually opened
|
||||
|
||||
Reference in New Issue
Block a user