Skip to content

Commit 851f57f

Browse files
committed
prettier
1 parent d3eb8da commit 851f57f

File tree

1 file changed

+3
-4
lines changed
  • packages/svelte/src/compiler/phases/1-parse

1 file changed

+3
-4
lines changed

packages/svelte/src/compiler/phases/1-parse/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ export class Parser {
5151

5252
const lang_matches = this.template.matchAll(regex_lang_attribute);
5353

54-
for(const match of lang_matches)
55-
{
56-
if(match[0]?.[1] === 's') // ensure it starts with '<s' to match script tags
57-
{
54+
for (const match of lang_matches) {
55+
if (match[0]?.[1] === 's') {
56+
// ensure it starts with '<s' to match script tags
5857
this.ts = match[2] === 'ts';
5958
break;
6059
}

0 commit comments

Comments
 (0)