Use each instead of map to actually return nothing

This commit is contained in:
Kevin Wojniak 2016-12-18 17:32:19 -08:00 committed by GitHub
parent 53db36c43a
commit 2fc800ebd2
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ module Jekyll
#
# Returns nothing.
def retrieve_dirs(_base, dir, dot_dirs)
dot_dirs.map do |file|
dot_dirs.each do |file|
dir_path = site.in_source_dir(dir, file)
rel_path = File.join(dir, file)
unless @site.dest.sub(%r!/$!, "") == dir_path