Skip to content

Commit e4c7c03

Browse files
committed
fix: style
1 parent f2751e3 commit e4c7c03

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/tools/mongodb/read/aggregate.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ export class AggregateTool extends MongoDBToolBase {
2828
// Check if aggregate operation uses an index if enabled
2929
if (this.config.indexCheck) {
3030
await checkIndexUsage(provider, database, collection, "aggregate", async () => {
31-
return provider
32-
.aggregate(database, collection, pipeline)
33-
.explain("queryPlanner");
31+
return provider.aggregate(database, collection, pipeline).explain("queryPlanner");
3432
});
3533
}
3634

0 commit comments

Comments
 (0)