Skip to content

Commit 52056b2

Browse files
committed
Remove todo for cursor iteration
1 parent 998bf19 commit 52056b2

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

packages/shell-api/src/aggregation-cursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default class AggregationCursor extends ShellApiClass {
3030
return results;
3131
}
3232

33-
for (let i = 0; i < 20; i++) { // TODO: ensure that assigning cursor doesn't iterate
33+
for (let i = 0; i < 20; i++) {
3434
if (!await this.hasNext()) {
3535
break;
3636
}

packages/shell-api/src/cursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default class Cursor extends ShellApiClass {
3333
return results;
3434
}
3535

36-
for (let i = 0; i < 20; i++) { // TODO: ensure that assigning cursor doesn't iterate
36+
for (let i = 0; i < 20; i++) {
3737
if (!await this.hasNext()) {
3838
break;
3939
}

packages/shell-api/src/shell-api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export default class ShellApi extends ShellApiClass {
8181
@returnsPromise
8282
async it(): Promise<any> {
8383
if (!this.internalState.currentCursor) {
84-
// TODO: warn here
8584
return new CursorIterationResult();
8685
}
8786
return await this.internalState.currentCursor._it();

0 commit comments

Comments
 (0)