Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Dec 31, 2024
1 parent 1dbd642 commit 952e170
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function render(_ctx) {
const n0 = _createIf(() => (_ctx.ok) ? () => {
const n2 = t0()
return n2
} : () => (_ctx.orNot) ? () => {
} : _ctx.orNot ? () => {
const n5 = t1()
const n6 = t2()
return [n5, n6]
Expand Down Expand Up @@ -104,7 +104,7 @@ export function render(_ctx) {
const n0 = _createIf(() => (_ctx.ok) ? () => {
const n2 = t0()
return n2
} : () => (_ctx.orNot) ? () => {
} : _ctx.orNot ? () => {
const n4 = t1()
return n4
} : () => {
Expand All @@ -124,7 +124,7 @@ export function render(_ctx) {
const n0 = _createIf(() => (_ctx.ok) ? () => {
const n2 = t0()
return n2
} : () => (_ctx.orNot) ? () => {
} : _ctx.orNot ? () => {
const n4 = t1()
return n4
} : undefined)
Expand Down
4 changes: 2 additions & 2 deletions packages/compiler-vapor/src/generators/if.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export function genIf(
const [frag, push] = buildCodeFragment()

const codes: CodeFragment[] = [
'() => (',
isNested?undefined:'() => (',
...genExpression(condition, context),
')',
isNested?undefined:')',
]

let positiveArg = genBlock(positive, context)
Expand Down

0 comments on commit 952e170

Please sign in to comment.