Skip to content

Commit 9c54dac

Browse files
authored
chore: use NOOP. (#9938)
1 parent 923d560 commit 9c54dac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/compiler-core/src/transform.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ export function createTransformContext(
256256
}
257257
context.parent!.children.splice(removalIndex, 1)
258258
},
259-
onNodeRemoved: () => {},
259+
onNodeRemoved: NOOP,
260260
addIdentifiers(exp) {
261261
// identifier tracking only happens in non-browser builds.
262262
if (!__BROWSER__) {

packages/server-renderer/src/render.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function renderComponentVNode(
107107
),
108108
)
109109
// Note: error display is already done by the wrapped lifecycle hook function.
110-
.catch(() => {})
110+
.catch(NOOP)
111111
}
112112
return p.then(() => renderComponentSubTree(instance, slotScopeId))
113113
} else {

0 commit comments

Comments
 (0)