lib/jekyll/jekyll-cloudcannon-schedule.rb in jekyll-cloudcannon-schedule-0.1.2 vs lib/jekyll/jekyll-cloudcannon-schedule.rb in jekyll-cloudcannon-schedule-0.1.3

- old
+ new

@@ -7,13 +7,12 @@ def read_publishable(dir, magic_dir, matcher) future_posts = [] read_content(dir, magic_dir, matcher).tap { |docs| docs.each(&:read) } .each do |doc| next unless doc.content.valid_encoding? + site.publisher.publish?(doc).tap do |will_publish| - if !will_publish && site.publisher.hidden_in_the_future?(doc) - future_posts << doc - end + future_posts << doc if !will_publish && site.publisher.hidden_in_the_future?(doc) end end future_posts end