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:
Sam Saffron 2020-02-16 20:37:54 +11:00
parent 28d61cb0d7
commit 3b062f79fc
No known key found for this signature in database
GPG Key ID: B9606168D2FFD9F5

View File

@ -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