strip nils
This commit is contained in:
parent
0e74efb13e
commit
3d4ddca76a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user