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-03-25 16:16:38 -04:00
parent 802a6671cb
commit c0832ce0d1
+1 -1
View File
@@ -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