mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 19:00:39 -07:00
Consistency in warnings.
This commit is contained in:
+1
-3
@@ -67,10 +67,8 @@ module Liquid
|
||||
all_warnings = []
|
||||
all_warnings.concat(@warnings) if @warnings
|
||||
|
||||
return all_warnings unless @children
|
||||
@children.each do |node|
|
||||
node_warns = node.respond_to?(:warnings) ? node.warnings : nil
|
||||
all_warnings.concat(node_warns) if node_warns
|
||||
all_warnings.concat(node.warnings || [])
|
||||
end
|
||||
|
||||
all_warnings
|
||||
|
||||
Reference in New Issue
Block a user