Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed Apr 26, 2023
1 parent bdae852 commit acafeb4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/cursor/run_command_cursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,7 @@ export class RunCommandCursor {

const result = await this.asyncIterator.next();

if (result.done) {
return null;
}

return result.value;
return result.done ? null : result.value;
}

async toArray() {
Expand Down

0 comments on commit acafeb4

Please sign in to comment.