Skip to content

Commit 7ec6141

Browse files
committed
Fix style errors
1 parent de22ac5 commit 7ec6141

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/tools/mongodb/delete/dropSearchIndex.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,20 @@ import { ToolArgs, OperationType } from "../../tool.js";
55

66
export class DropSearchIndexTool extends MongoDBToolBase {
77
protected name = "drop-search-index";
8-
protected description =
9-
"Deletes a text or vector search index from the database.";
8+
protected description = "Deletes a text or vector search index from the database.";
109
protected argsShape = {
1110
...DbOperationArgs,
1211
indexName: z.string().describe("The name of the search or vector index to delete"),
1312
};
1413
protected operationType: OperationType = "delete";
1514

16-
protected async execute({ database, collection, indexName }: ToolArgs<typeof this.argsShape>): Promise<CallToolResult> {
15+
protected async execute({
16+
database,
17+
collection,
18+
indexName,
19+
}: ToolArgs<typeof this.argsShape>): Promise<CallToolResult> {
1720
const provider = await this.ensureConnected();
18-
const result = await provider.dropSearchIndex(database, collection, indexName);
21+
await provider.dropSearchIndex(database, collection, indexName);
1922

2023
return {
2124
content: [
@@ -26,4 +29,4 @@ export class DropSearchIndexTool extends MongoDBToolBase {
2629
],
2730
};
2831
}
29-
}
32+
}

0 commit comments

Comments
 (0)