Skip to content

Commit 02cf4b1

Browse files
sto3pslsxzz
authored andcommitted
Apply suggestions from code review
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
1 parent 690cc10 commit 02cf4b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/runtime-core/src/apiCreateApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export function createAppAPI<HostElement>(
317317
namespace = 'svg'
318318
}
319319

320-
if (namespace === false) {
320+
else if (namespace === false) {
321321
namespace = undefined
322322
}
323323

packages/runtime-core/src/components/Teleport.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const TeleportImpl = {
116116
if (namespace === 'svg' || isTargetSVG(target)) {
117117
namespace = 'svg'
118118
}
119-
if (namespace === 'mathml' || isTargetMathML(target)) {
119+
else if (namespace === 'mathml' || isTargetMathML(target)) {
120120
namespace = 'mathml'
121121
}
122122
} else if (__DEV__ && !disabled) {
@@ -158,7 +158,7 @@ export const TeleportImpl = {
158158
if (namespace === 'svg' || isTargetSVG(target)) {
159159
namespace = 'svg'
160160
}
161-
if (namespace === 'mathml' || isTargetMathML(target)) {
161+
else if (namespace === 'mathml' || isTargetMathML(target)) {
162162
namespace = 'mathml'
163163
}
164164

0 commit comments

Comments
 (0)