Skip to content

Commit

Permalink
- Remove redundant instanceof condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantin-msft committed Mar 9, 2023
1 parent 0ed32fa commit 629d84d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ export class SilentRefreshClient extends StandardInteractionClient {
return result;
})
.catch((e: AuthError) => {
if (e instanceof AuthError) {
(e as AuthError).setCorrelationId(this.correlationId);
serverTelemetryManager.cacheFailedRequest(e);
}
(e as AuthError).setCorrelationId(this.correlationId);
serverTelemetryManager.cacheFailedRequest(e);
acquireTokenMeasurement.endMeasurement({
errorCode: e.errorCode,
subErrorCode: e.subError,
Expand Down

0 comments on commit 629d84d

Please sign in to comment.