Apply suggestions from code review

pull/16769/head
Rich Harris 3 days ago committed by GitHub
parent 27e33a8d9a
commit 2365d1b90c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -42,9 +42,7 @@ export function EachBlock(node, context) {
context.visit(node.body);
if (node.key) context.visit(node.key);
if (node.fallback) {
context.visit(node.fallback);
}
if (node.fallback) context.visit(node.fallback);
if (!context.state.analysis.runes) {
let mutated =

@ -27,7 +27,5 @@ export function IfBlock(node, context) {
}
context.visit(node.consequent);
if (node.alternate) {
context.visit(node.alternate);
}
if (node.alternate) context.visit(node.alternate);
}

@ -1,7 +1,7 @@
/** @import { AST } from '#compiler' */
/** @import { ComponentContext } from '../types.js' */
import * as b from '#compiler/builders';
import { process_children, build_template, call_child_payload } from './shared/utils.js';
import { process_children, build_template } from './shared/utils.js';
/**
* @param {AST.TitleElement} node

Loading…
Cancel
Save