Skip to content

Commit 7edbd95

Browse files
committed
chore: comments
1 parent 2bd7a4c commit 7edbd95

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/operations/find.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,7 @@ function makeFindCommand(ns: MongoDBNamespace, filter: Document, options: FindOp
185185
}
186186

187187
if (typeof options.limit === 'number') {
188-
if (options.limit < 0) {
189-
findCommand.limit = -options.limit;
190-
findCommand.singleBatch = true;
191-
} else {
192-
findCommand.limit = options.limit;
193-
}
188+
findCommand.limit = options.limit;
194189
}
195190

196191
if (typeof options.batchSize === 'number') {

0 commit comments

Comments
 (0)