Skip to content

Commit

Permalink
chore: replace () => {} with NOOP
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred-Skyblue authored and sxzz committed Aug 21, 2023
1 parent 61c3c8e commit eb99101
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/compiler-core/src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export function createTransformContext(
}
context.parent!.children.splice(removalIndex, 1)
},
onNodeRemoved: () => {},
onNodeRemoved: NOOP,
addIdentifiers(exp) {
// identifier tracking only happens in non-browser builds.
if (!__BROWSER__) {
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime-core/src/compat/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ function installCompatMount(

const hasNoRender =
!isFunction(component) && !component.render && !component.template
const emptyRender = () => {}
const emptyRender = NOOP

// create root instance
const instance = createComponentInstance(vnode, null, null)
Expand Down

0 comments on commit eb99101

Please sign in to comment.