Refactor docs_to_write
This commit is contained in:
parent
54b74fafba
commit
fc98f06ed7
|
@ -407,13 +407,7 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
def docs_to_write
|
def docs_to_write
|
||||||
collections.reduce(Set.new) do |docs, (_, collection)|
|
documents.select(&:write?)
|
||||||
if collection.write?
|
|
||||||
docs.merge(collection.docs)
|
|
||||||
else
|
|
||||||
docs
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def documents
|
def documents
|
||||||
|
|
Loading…
Reference in New Issue