From a48b4f47f69430df11cdca9c0403189b230d3138 Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Thu, 27 Feb 2014 20:06:57 -0500 Subject: [PATCH] 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. --- lib/liquid/document.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/liquid/document.rb b/lib/liquid/document.rb index b802c85..241ea61 100644 --- a/lib/liquid/document.rb +++ b/lib/liquid/document.rb @@ -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