Skip to content

Commit

Permalink
fixed the omission of a fallthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Jul 31, 2023
1 parent 959d10e commit 2a95751
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nats-base-client/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -743,15 +743,15 @@ export class ProtocolHandler implements Dispatcher<ParserEvent> {
}

handleError(err: NatsError) {
if (err.isAuthTimeout()) {
this.lastError = err;
} else if (err.isAuthError()) {
if (err.isAuthError()) {
this.handleAuthError(err);
} else if (err.isProtocolError()) {
this.lastError = err;
} else if (err.isAuthTimeout()) {
this.lastError = err;
} else if (!err.isPermissionError()) {
}
// fallthrough here
if (!err.isPermissionError()) {
this.lastError = err;
}
}
Expand Down

0 comments on commit 2a95751

Please sign in to comment.