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:
Dylan Thacker-Smith
2014-02-27 20:06:57 -05:00
parent 72d402837e
commit a48b4f47f6

View File

@@ -8,7 +8,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