Skip to content

Commit ae251bf

Browse files
sxzzyyx990803
authored andcommitted
style: format
1 parent 02cf4b1 commit ae251bf

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

packages/runtime-core/src/apiCreateApp.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,7 @@ export function createAppAPI<HostElement>(
315315

316316
if (namespace === true) {
317317
namespace = 'svg'
318-
}
319-
320-
else if (namespace === false) {
318+
} else if (namespace === false) {
321319
namespace = undefined
322320
}
323321

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ export const TeleportImpl = {
115115
// #2652 we could be teleporting from a non-SVG tree into an SVG tree
116116
if (namespace === 'svg' || isTargetSVG(target)) {
117117
namespace = 'svg'
118-
}
119-
else if (namespace === 'mathml' || isTargetMathML(target)) {
118+
} else if (namespace === 'mathml' || isTargetMathML(target)) {
120119
namespace = 'mathml'
121120
}
122121
} else if (__DEV__ && !disabled) {
@@ -157,8 +156,7 @@ export const TeleportImpl = {
157156

158157
if (namespace === 'svg' || isTargetSVG(target)) {
159158
namespace = 'svg'
160-
}
161-
else if (namespace === 'mathml' || isTargetMathML(target)) {
159+
} else if (namespace === 'mathml' || isTargetMathML(target)) {
162160
namespace = 'mathml'
163161
}
164162

0 commit comments

Comments
 (0)