Skip to content

Commit f084dc4

Browse files
cleanup
1 parent 3c6c510 commit f084dc4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/cursorless-engine/src/languages/TreeSitterQuery/validateQueryCaptures.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ export function validateQueryCaptures(file: string, rawQuery: string): void {
8181
if (!allowedCaptures.has(captureName)) {
8282
const text = match.input!.slice(0, match.index!);
8383
const lineNumber = text.split("\n").length;
84-
const capture = `@${captureName}`;
85-
errors.push(`${file}(${lineNumber}) invalid capture '${capture}'.`);
84+
errors.push(`${file}(${lineNumber}) invalid capture '@${captureName}'.`);
8685
}
8786
}
8887

0 commit comments

Comments
 (0)