Skip to content

Commit

Permalink
fix: use optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Mar 24, 2022
1 parent 1a18107 commit f8040f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class QueryStream extends Readable {
this.cursor = new Cursor(text, values);
this._reading = false;
this._closed = false;
this.batchSize = (options ?? {}).batchSize ?? 100;
this.batchSize = options?.batchSize ?? 100;

// delegate Submittable callbacks to cursor
this.handleRowDescription = this.cursor.handleRowDescription.bind(this.cursor);
Expand Down

0 comments on commit f8040f7

Please sign in to comment.