Skip to content

Commit e1478e2

Browse files
authored
chore: rename var
1 parent 25ff0df commit e1478e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/compiler-vapor/src/transforms/transformSlotOutlet.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ export const transformSlotOutlet: NodeTransform = (node, context) => {
8181
irProps = isDynamic ? props : [props]
8282

8383
const { operation } = context.block
84-
const directives = operation.filter(
84+
const hasDirectives = operation.filter(
8585
oper => oper.type === IRNodeTypes.WITH_DIRECTIVE,
8686
) as WithDirectiveIRNode[]
8787

88-
if (directives.length) {
88+
if (hasDirectives.length) {
8989
context.options.onError(
9090
createCompilerError(
9191
ErrorCodes.X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET,
92-
directives[0].dir.loc,
92+
hasDirectives[0].dir.loc,
9393
),
9494
)
9595
}

0 commit comments

Comments
 (0)