Skip to content

A platform for community discussion. Free, open, simple.

FIX: invalid syntax in elsif in Theme importer

Sam Saffron3b062f79fccd
diff --git a/lib/stylesheet/importer.rb b/lib/stylesheet/importer.rb
index 060243ae9f3..2a09b4d192d 100644
--- a/lib/stylesheet/importer.rb
+++ b/lib/stylesheet/importer.rb
@@ -207,10 +207,13 @@ module Stylesheet
end
elsif callback = Importer.special_imports[asset]
instance_eval(&callback)
- elsif (path, source = match_theme_import(asset, parent_path))
- Import.new(path, source: source)
else
- Import.new(asset + ".scss")
+ path, source = match_theme_import(asset, parent_path)
+ if path && source
+ Import.new(path, source: source)
+ else
+ Import.new(asset + ".scss")
+ end
end
end
end