strip nils

This commit is contained in:
Scott Davis 2012-01-31 04:12:36 -05:00
parent 0e74efb13e
commit 3d4ddca76a
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ module Compass
end
def find_file
Compass.configuration.sprite_load_path.each do |path|
Compass.configuration.sprite_load_path.compact.each do |path|
f = File.join(path, relative_file)
if File.exists?(f)
return f

View File

@ -74,7 +74,7 @@ module Compass
# Returns the Glob of image files for the uri
def self.files(uri)
Compass.configuration.sprite_load_path.each do |folder|
Compass.configuration.sprite_load_path.compact.each do |folder|
files = Dir[File.join(folder, uri)].sort
next if files.empty?
return files