chore: use NOOP. (#9938)

This commit is contained in:
zhangenming 2024-01-09 15:24:10 +08:00 committed by GitHub
parent 923d560d0b
commit 9c54dacd0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,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__) {

View File

@ -107,7 +107,7 @@ export function renderComponentVNode(
),
)
// Note: error display is already done by the wrapped lifecycle hook function.
.catch(() => {})
.catch(NOOP)
}
return p.then(() => renderComponentSubTree(instance, slotScopeId))
} else {