Revert "[html] A 'return' statement can only be used within a function body. Fixes #143220"

This reverts commit 56661ec16a.
This commit is contained in:
Martin Aeschlimann
2022-04-04 18:07:19 +02:00
parent ac39fefe78
commit c7a685113b
2 changed files with 2 additions and 3 deletions

View File

@@ -181,7 +181,6 @@ function getPrefix(c: EmbeddedRegion) {
if (c.attributeValue) {
switch (c.languageId) {
case 'css': return CSS_STYLE_RULE + '{';
case 'javascript': return '()=>{';
}
}
return '';
@@ -190,7 +189,7 @@ function getSuffix(c: EmbeddedRegion) {
if (c.attributeValue) {
switch (c.languageId) {
case 'css': return '}';
case 'javascript': return '};';
case 'javascript': return ';';
}
}
return '';