Commit a171ceba authored by Grzegorz Bizon's avatar Grzegorz Bizon

Use array literal in QA page validation class

parent bd29d36a
...@@ -33,7 +33,7 @@ module QA ...@@ -33,7 +33,7 @@ module QA
end end
def errors def errors
Array.new.tap do |errors| [].tap do |errors|
descendants.each do |page| descendants.each do |page|
page.errors.each do |message| page.errors.each do |message|
errors.push(Error.new(page.name, message)) errors.push(Error.new(page.name, message))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment