Skip to content

Commit 566748c

Browse files
committed
chore: remove unused param
1 parent 4af5d1b commit 566748c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/compiler-sfc/src/compileScript.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ import {
4545
ObjectMethod,
4646
LVal,
4747
Expression,
48-
VariableDeclaration,
4948
TSEnumDeclaration
5049
} from '@babel/types'
5150
import { walk } from 'estree-walker'
@@ -516,11 +515,7 @@ export function compileScript(
516515
return true
517516
}
518517

519-
function processWithDefaults(
520-
node: Node,
521-
declId?: LVal,
522-
declKind?: VariableDeclaration['kind']
523-
): boolean {
518+
function processWithDefaults(node: Node, declId?: LVal): boolean {
524519
if (!isCallOf(node, WITH_DEFAULTS)) {
525520
return false
526521
}
@@ -1329,7 +1324,7 @@ export function compileScript(
13291324
// defineProps / defineEmits
13301325
const isDefineProps =
13311326
processDefineProps(init, decl.id) ||
1332-
processWithDefaults(init, decl.id, node.kind)
1327+
processWithDefaults(init, decl.id)
13331328
const isDefineEmits = processDefineEmits(init, decl.id)
13341329
if (isDefineProps || isDefineEmits) {
13351330
if (left === 1) {

0 commit comments

Comments
 (0)