Prettier 2.0 (#393)

This commit is contained in:
Steve Faulkner
2021-01-20 09:15:01 -06:00
committed by GitHub
parent c1937ca464
commit 4be53284b5
500 changed files with 41927 additions and 41838 deletions

View File

@@ -54,7 +54,7 @@ export async function armRequest<T>({
apiVersion,
method,
body: requestBody,
queryParams
queryParams,
}: Options): Promise<T> {
const url = new URL(path, host);
url.searchParams.append("api-version", configContext.armAPIVersion || apiVersion);
@@ -70,9 +70,9 @@ export async function armRequest<T>({
const response = await window.fetch(url.href, {
method,
headers: {
Authorization: userContext.authorizationToken
Authorization: userContext.authorizationToken,
},
body: requestBody ? JSON.stringify(requestBody) : undefined
body: requestBody ? JSON.stringify(requestBody) : undefined,
});
if (!response.ok) {
let error: ARMError;
@@ -108,8 +108,8 @@ async function getOperationStatus(operationStatusUrl: string) {
const response = await window.fetch(operationStatusUrl, {
headers: {
Authorization: userContext.authorizationToken
}
Authorization: userContext.authorizationToken,
},
});
if (!response.ok) {