Skip to content

Commit ec9997a

Browse files
- Fix formatting.
1 parent a881842 commit ec9997a

6 files changed

Lines changed: 10 additions & 19 deletions

File tree

lib/msal-browser/src/error/BrowserAuthError.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ export { BrowserAuthErrorCodes }; // Allow importing as "BrowserAuthErrorCodes"
1212
*/
1313
export class BrowserAuthError extends AuthError {
1414
constructor(errorCode: string, subError?: string) {
15-
super(errorCode, `See https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/errors.md#${errorCode} for details`, subError);
15+
super(
16+
errorCode,
17+
`See https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/errors.md#${errorCode} for details`,
18+
subError
19+
);
1620

1721
Object.setPrototypeOf(this, BrowserAuthError.prototype);
1822
this.name = "BrowserAuthError";

lib/msal-browser/src/error/BrowserConfigurationAuthError.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ export class BrowserConfigurationAuthError extends AuthError {
2121
export function createBrowserConfigurationAuthError(
2222
errorCode: string
2323
): BrowserConfigurationAuthError {
24-
return new BrowserConfigurationAuthError(
25-
errorCode
26-
);
24+
return new BrowserConfigurationAuthError(errorCode);
2725
}

lib/msal-browser/src/error/NativeAuthError.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,5 @@ export function createNativeAuthError(
100100
}
101101
}
102102

103-
return new NativeAuthError(
104-
code,
105-
description,
106-
ext
107-
);
103+
return new NativeAuthError(code, description, ext);
108104
}

lib/msal-browser/src/error/NestedAppAuthError.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ export class NestedAppAuthError extends AuthError {
1515
}
1616

1717
public static createUnsupportedError(): NestedAppAuthError {
18-
return new NestedAppAuthError(
19-
unsupportedMethod
20-
);
18+
return new NestedAppAuthError(unsupportedMethod);
2119
}
2220
}

lib/msal-common/src/error/ClientAuthError.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ export { ClientAuthErrorCodes }; // Allow importing as "ClientAuthErrorCodes";
1616
*/
1717
export class ClientAuthError extends AuthError {
1818
constructor(errorCode: string, additionalMessage?: string) {
19-
super(
20-
errorCode,
21-
additionalMessage
22-
);
19+
super(errorCode, additionalMessage);
2320
this.name = "ClientAuthError";
2421

2522
Object.setPrototypeOf(this, ClientAuthError.prototype);

lib/msal-common/src/error/InteractionRequiredAuthError.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,5 @@ export function isInteractionRequiredError(
115115
export function createInteractionRequiredAuthError(
116116
errorCode: string
117117
): InteractionRequiredAuthError {
118-
return new InteractionRequiredAuthError(
119-
errorCode
120-
);
118+
return new InteractionRequiredAuthError(errorCode);
121119
}

0 commit comments

Comments
 (0)