diff --git a/lib/sassc/embedded.rb b/lib/sassc/embedded.rb index f58a5f7..a0a8f2b 100644 --- a/lib/sassc/embedded.rb +++ b/lib/sassc/embedded.rb @@ -328,9 +328,7 @@ def canonicalize(url, context) return end else - imports = @importer.imports(path, parent_path) - imports = [SassC::Importer::Import.new(path)] if imports.nil? - imports = [imports] unless imports.is_a?(Array) + imports = [*@importer.imports(path, parent_path)] canonical_url = imports_to_native(imports, parent_dir, context.from_import, url, containing_url) unless @importer_results.key?(canonical_url) @file_url = canonical_url