Fix #warnings taking exponential time to compute

This commit is contained in:
Justin Li
2014-11-12 16:12:00 -05:00
parent 3321cffe08
commit 422bafd66a
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ module Liquid
def warnings
all_warnings = []
nodelist.each do |node|
all_warnings.concat(node.warnings) if node.respond_to?(:warnings) && node.warnings
all_warnings.concat(node.warnings) if node.respond_to?(:warnings)
end
all_warnings
end