lib/tailor/configuration/file_set.rb in tailor-1.2.1 vs lib/tailor/configuration/file_set.rb in tailor-1.3.0
- old
+ new
@@ -97,14 +97,12 @@
# Gets a list of only files that are in +base_dir+.
#
# @param [String] base_dir The directory to get the file list for.
# @return [Array<String>] The List of files.
def all_files_in_dir(base_dir)
- files = Dir.glob(File.join(base_dir, '**', '*')).find_all do |file|
+ Dir.glob(File.join(base_dir, '**', '*')).find_all do |file|
file if File.file?(file)
end
-
- files
end
end
end
end