Skip to content

Commit e548514

Browse files
committed
refactor: use variable name instead of comment
1 parent aac6da4 commit e548514

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sdam/server.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,9 @@ export class Server extends TypedEventEmitter<ServerEvents> {
383383
return;
384384
}
385385

386-
// ignore stale errors
387-
if (error.connectionGeneration && error.connectionGeneration < this.s.pool.generation) {
386+
const isStaleError =
387+
error.connectionGeneration && error.connectionGeneration < this.s.pool.generation;
388+
if (isStaleError) {
388389
return;
389390
}
390391

0 commit comments

Comments
 (0)