Skip to content

Commit

Permalink
refactor: use variable name instead of comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dariakp committed Sep 29, 2022
1 parent aac6da4 commit e548514
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sdam/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,9 @@ export class Server extends TypedEventEmitter<ServerEvents> {
return;
}

// ignore stale errors
if (error.connectionGeneration && error.connectionGeneration < this.s.pool.generation) {
const isStaleError =
error.connectionGeneration && error.connectionGeneration < this.s.pool.generation;
if (isStaleError) {
return;
}

Expand Down

0 comments on commit e548514

Please sign in to comment.