Skip to content

Commit

Permalink
fix(NODE-4429): dont return and callback
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Aug 16, 2022
1 parent 901f060 commit c79802b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongo_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ export class MongoClient extends TypedEventEmitter<MongoClientEvents> {
})
.then(() => {
if (this.topology == null) {
return callback();
return;
}
// clear out references to old topology
const topology = this.topology;
Expand Down

0 comments on commit c79802b

Please sign in to comment.