Skip to content

Commit 702adf9

Browse files
committed
simplify
1 parent 2d27f50 commit 702adf9

File tree

1 file changed

+1
-4
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+1
-4
lines changed

packages/svelte/src/internal/client/dom/blocks/boundary.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,7 @@ export function boundary(node, props, boundary_fn) {
8989
});
9090
};
9191

92-
// Handle the `onerror` event handler
93-
if (onerror) {
94-
onerror(error, reset);
95-
}
92+
onerror?.(error, reset);
9693

9794
if (boundary_effect) {
9895
destroy_effect(boundary_effect);

0 commit comments

Comments
 (0)