mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-01 10:15:03 -05:00
Refactor docs_to_write
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user