We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 083498b commit 513b8a7Copy full SHA for 513b8a7
src/mongoc/mongoc-cursor.c
@@ -88,14 +88,8 @@ _mongoc_n_return (mongoc_cursor_t * cursor)
88
/* calculate remaining */
89
uint32_t remaining = cursor->limit - cursor->count;
90
91
- /* if we had a batch size */
92
- if (r) {
93
- /* use min of batch or remaining */
94
- r = MIN(r, (int32_t)remaining);
95
- } else {
96
- /* if we didn't, just use the remaining */
97
- r = remaining;
98
- }
+ /* use min of batch or remaining */
+ r = MIN(r, (int32_t)remaining);
99
}
100
101
return r;
0 commit comments