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,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
|
||||
|
|
Loading…
Reference in New Issue