Skip to content

Commit

Permalink
chore: use NOOP. (#9938)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangenming authored Jan 9, 2024
1 parent 923d560 commit 9c54dac
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 @@ -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__) {
Expand Down
2 changes: 1 addition & 1 deletion packages/server-renderer/src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9c54dac

Please sign in to comment.