mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
Remove any casts in auth extensions (#270089)
This commit is contained in:
committed by
GitHub
parent
59308a8b5e
commit
8845fc4b5c
@@ -86,7 +86,7 @@ export class MicrosoftAuthenticationTelemetryReporter implements IExperimentatio
|
||||
this._telemetryReporter.sendTelemetryEvent('logoutFailed');
|
||||
}
|
||||
|
||||
sendTelemetryErrorEvent(error: unknown): void {
|
||||
sendTelemetryErrorEvent(error: Error | string): void {
|
||||
let errorMessage: string | undefined;
|
||||
let errorName: string | undefined;
|
||||
let errorCode: string | undefined;
|
||||
@@ -94,8 +94,7 @@ export class MicrosoftAuthenticationTelemetryReporter implements IExperimentatio
|
||||
if (typeof error === 'string') {
|
||||
errorMessage = error;
|
||||
} else {
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
const authError: AuthError = error as any;
|
||||
const authError: AuthError = error as AuthError;
|
||||
// don't set error message or stack because it contains PII
|
||||
errorCode = authError.errorCode;
|
||||
errorCorrelationId = authError.correlationId;
|
||||
|
||||
Reference in New Issue
Block a user