Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 18, 2024
1 parent c54687d commit 76eb386
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/compiler-vapor/src/generators/operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
type SimpleExpressionNode,
createSimpleExpression,
} from '@vue/compiler-core'
import { extend, NOOP } from '@vue/shared'
import { NOOP, extend } from '@vue/shared'
import { genExpression } from './expression'
import { walk } from 'estree-walker'
import type { Node } from '@babel/types'
Expand Down Expand Up @@ -240,7 +240,10 @@ function processExpressions(context: CodegenContext): DeclarationValue[] {
if (!declarations.some(d => d.replacement === varName)) {
declarations.push({
replacement: varName,
value: extend({ ast: parseExpression(`(${oldContent})`, options) }, createSimpleExpression(oldContent)),
value: extend(
{ ast: parseExpression(`(${oldContent})`, options) },
createSimpleExpression(oldContent),
),
})
}
}
Expand Down

0 comments on commit 76eb386

Please sign in to comment.