Skip to content

Commit 0bbcad3

Browse files
committed
clean up
1 parent fab6697 commit 0bbcad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operations/aggregate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class AggregateOperation<T = Document> extends CommandOperation<Aggregate
6565
this.readPreference = ReadPreference.primary;
6666
}
6767

68-
if (options?.explain && this.writeConcern) {
68+
if (this.explain && this.writeConcern) {
6969
throw new MongoError('"explain" cannot be used on an aggregate call with writeConcern');
7070
}
7171

0 commit comments

Comments
 (0)