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
end
def errors
Array.new.tap do |errors|
[].tap do |errors|
descendants.each do |page|
page.errors.each do |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