Rubocop: lib/jekyll/readers/page_reader.rb

This commit is contained in:
Pat Hawks 2016-05-26 00:10:20 -05:00
parent e85690a61f
commit 615a9ee9ac
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@ module Jekyll
# #
# Returns an array of static pages. # Returns an array of static pages.
def read(files) def read(files)
files.map { |page| @unfiltered_content << Page.new(@site, @site.source, @dir, page) } files.map do |page|
@unfiltered_content << Page.new(@site, @site.source, @dir, page)
end
@unfiltered_content.select { |page| site.publisher.publish?(page) } @unfiltered_content.select { |page| site.publisher.publish?(page) }
end end
end end