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
1 changed files with 6 additions and 3 deletions

View File

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