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