Skip to content

Commit eb99101

Browse files
Alfred-Skybluesxzz
authored andcommitted
chore: replace () => {} with NOOP
1 parent 61c3c8e commit eb99101

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/compiler-core/src/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export function createTransformContext(
255255
}
256256
context.parent!.children.splice(removalIndex, 1)
257257
},
258-
onNodeRemoved: () => {},
258+
onNodeRemoved: NOOP,
259259
addIdentifiers(exp) {
260260
// identifier tracking only happens in non-browser builds.
261261
if (!__BROWSER__) {

packages/runtime-core/src/compat/global.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ function installCompatMount(
461461

462462
const hasNoRender =
463463
!isFunction(component) && !component.render && !component.template
464-
const emptyRender = () => {}
464+
const emptyRender = NOOP
465465

466466
// create root instance
467467
const instance = createComponentInstance(vnode, null, null)

0 commit comments

Comments
 (0)