Skip to content

Commit 91106d9

Browse files
Update src/mongo_client.ts
Co-authored-by: Neal Beeken <neal.beeken@mongodb.com>
1 parent 473f310 commit 91106d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongo_client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ export class MongoClient extends TypedEventEmitter<MongoClientEvents> {
450450

451451
return maybeCallback(async () => {
452452
try {
453-
this.connectionLock = this.connectionLock ?? this._connect();
453+
this.connectionLock ??= this._connect();
454454
await this.connectionLock;
455455
return this;
456456
} finally {

0 commit comments

Comments
 (0)