FIX: invalid syntax in elsif in Theme importer
elsif had a check that assigned to vars, this is not valid syntax and could explode at runtime
This commit is contained in:
parent
28d61cb0d7
commit
3b062f79fc
|
@ -207,7 +207,9 @@ module Stylesheet
|
||||||
end
|
end
|
||||||
elsif callback = Importer.special_imports[asset]
|
elsif callback = Importer.special_imports[asset]
|
||||||
instance_eval(&callback)
|
instance_eval(&callback)
|
||||||
elsif (path, source = match_theme_import(asset, parent_path))
|
else
|
||||||
|
path, source = match_theme_import(asset, parent_path)
|
||||||
|
if path && source
|
||||||
Import.new(path, source: source)
|
Import.new(path, source: source)
|
||||||
else
|
else
|
||||||
Import.new(asset + ".scss")
|
Import.new(asset + ".scss")
|
||||||
|
@ -215,3 +217,4 @@ module Stylesheet
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in New Issue