diff --git a/sdk/keyvault/keyvault-certificates/src/index.ts b/sdk/keyvault/keyvault-certificates/src/index.ts index fa99fce5b05a..0061f607f71b 100644 --- a/sdk/keyvault/keyvault-certificates/src/index.ts +++ b/sdk/keyvault/keyvault-certificates/src/index.ts @@ -471,10 +471,7 @@ export class CertificateClient { }; const pipeline = createPipelineFromOptions(internalPipelineOptions, authPolicy); - this.client = new KeyVaultClient( - pipelineOptions.apiVersion || LATEST_API_VERSION, - pipeline - ); + this.client = new KeyVaultClient(pipelineOptions.apiVersion || LATEST_API_VERSION, pipeline); } private async *listPropertiesOfCertificatesPage( @@ -1437,15 +1434,10 @@ export class CertificateClient { let result: UpdateCertificateResponse; try { - result = await this.client.updateCertificate( - this.vaultUrl, - certificateName, - version, - { - ...this.setParentSpan(span, requestOptions), - certificateAttributes: toCoreAttributes(options) - } - ); + result = await this.client.updateCertificate(this.vaultUrl, certificateName, version, { + ...this.setParentSpan(span, requestOptions), + certificateAttributes: toCoreAttributes(options) + }); } finally { span.end(); } diff --git a/sdk/keyvault/keyvault-certificates/test/public/list.spec.ts b/sdk/keyvault/keyvault-certificates/test/public/list.spec.ts index 832cb4cd862e..b0cc4699b45e 100644 --- a/sdk/keyvault/keyvault-certificates/test/public/list.spec.ts +++ b/sdk/keyvault/keyvault-certificates/test/public/list.spec.ts @@ -70,7 +70,11 @@ describe("Certificates client - list certificates in various ways", () => { const certificateName = testClient.formatName(`${prefix}-${this!.test!.title}-${suffix}`); const certificateNames = [`${certificateName}0`, `${certificateName}1`]; for (const name of certificateNames) { - const createPoller = await client.beginCreateCertificate(name, basicCertificatePolicy, testPollerProperties); + const createPoller = await client.beginCreateCertificate( + name, + basicCertificatePolicy, + testPollerProperties + ); await createPoller.pollUntilDone(); } @@ -92,7 +96,11 @@ describe("Certificates client - list certificates in various ways", () => { const certificateName = testClient.formatName(`${prefix}-${this!.test!.title}-${suffix}`); const certificateNames = [`${certificateName}0`, `${certificateName}1`]; for (const name of certificateNames) { - const createPoller = await client.beginCreateCertificate(name, basicCertificatePolicy, testPollerProperties); + const createPoller = await client.beginCreateCertificate( + name, + basicCertificatePolicy, + testPollerProperties + ); await createPoller.pollUntilDone(); } for (const name of certificateNames) { @@ -118,7 +126,11 @@ describe("Certificates client - list certificates in various ways", () => { const certificateName = testClient.formatName(`${prefix}-${this!.test!.title}-${suffix}`); const certificateNames = [`${certificateName}0`, `${certificateName}1`]; for (const name of certificateNames) { - const createPoller = await client.beginCreateCertificate(name, basicCertificatePolicy, testPollerProperties); + const createPoller = await client.beginCreateCertificate( + name, + basicCertificatePolicy, + testPollerProperties + ); await createPoller.pollUntilDone(); } let found = 0; @@ -151,7 +163,11 @@ describe("Certificates client - list certificates in various ways", () => { const certificateName = testClient.formatName(`${prefix}-${this!.test!.title}-${suffix}`); const certificateNames = [`${certificateName}0`, `${certificateName}1`]; for (const name of certificateNames) { - const createPoller = await client.beginCreateCertificate(name, basicCertificatePolicy, testPollerProperties); + const createPoller = await client.beginCreateCertificate( + name, + basicCertificatePolicy, + testPollerProperties + ); await createPoller.pollUntilDone(); } for (const name of certificateNames) { diff --git a/sdk/keyvault/keyvault-certificates/test/public/lro.delete.spec.ts b/sdk/keyvault/keyvault-certificates/test/public/lro.delete.spec.ts index 54d6628eb0ed..fdc67af0149b 100644 --- a/sdk/keyvault/keyvault-certificates/test/public/lro.delete.spec.ts +++ b/sdk/keyvault/keyvault-certificates/test/public/lro.delete.spec.ts @@ -102,5 +102,4 @@ describe("Certificates client - lro - delete", () => { await testClient.purgeCertificate(certificateName); }); - }); diff --git a/sdk/keyvault/keyvault-keys/src/cryptographyClient.ts b/sdk/keyvault/keyvault-keys/src/cryptographyClient.ts index dae0afd54c6f..6612ade4f654 100644 --- a/sdk/keyvault/keyvault-keys/src/cryptographyClient.ts +++ b/sdk/keyvault/keyvault-keys/src/cryptographyClient.ts @@ -709,10 +709,7 @@ export class CryptographyClient { }; const pipeline = createPipelineFromOptions(internalPipelineOptions, authPolicy); - this.client = new KeyVaultClient( - pipelineOptions.apiVersion || LATEST_API_VERSION, - pipeline - ); + this.client = new KeyVaultClient(pipelineOptions.apiVersion || LATEST_API_VERSION, pipeline); let parsed; if (typeof key === "string") { diff --git a/sdk/keyvault/keyvault-keys/src/index.ts b/sdk/keyvault/keyvault-keys/src/index.ts index 998595a67c27..da0396408b23 100644 --- a/sdk/keyvault/keyvault-keys/src/index.ts +++ b/sdk/keyvault/keyvault-keys/src/index.ts @@ -239,10 +239,7 @@ export class KeyClient { }; const pipeline = createPipelineFromOptions(internalPipelineOptions, authPolicy); - this.client = new KeyVaultClient( - pipelineOptions.apiVersion || LATEST_API_VERSION, - pipeline - ); + this.client = new KeyVaultClient(pipelineOptions.apiVersion || LATEST_API_VERSION, pipeline); } /** diff --git a/sdk/keyvault/keyvault-secrets/src/index.ts b/sdk/keyvault/keyvault-secrets/src/index.ts index 54e2795302d4..c9167fbd1942 100644 --- a/sdk/keyvault/keyvault-secrets/src/index.ts +++ b/sdk/keyvault/keyvault-secrets/src/index.ts @@ -183,10 +183,7 @@ export class SecretClient { }; const pipeline = createPipelineFromOptions(internalPipelineOptions, authPolicy); - this.client = new KeyVaultClient( - pipelineOptions.apiVersion || LATEST_API_VERSION, - pipeline - ); + this.client = new KeyVaultClient(pipelineOptions.apiVersion || LATEST_API_VERSION, pipeline); } /**