lib/frontman/iterator.rb in frontman-ssg-0.0.4 vs lib/frontman/iterator.rb in frontman-ssg-0.1.0

- old
+ new

@@ -33,12 +33,10 @@ def parallel? Frontman::Config.get(:parallel, fallback: true) end def forward(method, collection, *options, &block) - if parallel? - return ::Parallel.public_send(method, collection, *options, &block) - end + return ::Parallel.public_send(method, collection, *options, &block) if parallel? collection.public_send(method, &block) end end end