Skip to content

Commit

Permalink
Merge pull request sass#100 from jhawthorn/avoid_searching_dirs
Browse files Browse the repository at this point in the history
Avoid searching for files in nonexistant dirs
  • Loading branch information
bolandrm authored Dec 4, 2017
2 parents 2e6dae6 + b814e79 commit 4d04aa1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/sassc/rails/importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ def imports(path, parent_path)
search_paths.map! do |path|
File.join(path, specified_dir)
end
search_paths.select! do |path|
File.directory?(path)
end
end

search_paths.each do |search_path|
Expand Down

0 comments on commit 4d04aa1

Please sign in to comment.