Skip to content

Commit 2365d1b

Browse files
authored
Apply suggestions from code review
1 parent 27e33a8 commit 2365d1b

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

packages/svelte/src/compiler/phases/2-analyze/visitors/EachBlock.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ export function EachBlock(node, context) {
4242

4343
context.visit(node.body);
4444
if (node.key) context.visit(node.key);
45-
if (node.fallback) {
46-
context.visit(node.fallback);
47-
}
45+
if (node.fallback) context.visit(node.fallback);
4846

4947
if (!context.state.analysis.runes) {
5048
let mutated =

packages/svelte/src/compiler/phases/2-analyze/visitors/IfBlock.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,5 @@ export function IfBlock(node, context) {
2727
}
2828

2929
context.visit(node.consequent);
30-
if (node.alternate) {
31-
context.visit(node.alternate);
32-
}
30+
if (node.alternate) context.visit(node.alternate);
3331
}

packages/svelte/src/compiler/phases/3-transform/server/visitors/TitleElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @import { AST } from '#compiler' */
22
/** @import { ComponentContext } from '../types.js' */
33
import * as b from '#compiler/builders';
4-
import { process_children, build_template, call_child_payload } from './shared/utils.js';
4+
import { process_children, build_template } from './shared/utils.js';
55

66
/**
77
* @param {AST.TitleElement} node

0 commit comments

Comments
 (0)