Skip to content

Commit 4d04aa1

Browse files
authored
Merge pull request sass#100 from jhawthorn/avoid_searching_dirs
Avoid searching for files in nonexistant dirs
2 parents 2e6dae6 + b814e79 commit 4d04aa1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/sassc/rails/importer.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ def imports(path, parent_path)
102102
search_paths.map! do |path|
103103
File.join(path, specified_dir)
104104
end
105+
search_paths.select! do |path|
106+
File.directory?(path)
107+
end
105108
end
106109

107110
search_paths.each do |search_path|

0 commit comments

Comments
 (0)