Skip to content

Commit

Permalink
catch removed
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRufino committed Nov 7, 2023
1 parent 25ad4b2 commit 0db1f1e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/amplia-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,17 +243,12 @@ class AmpliaClient {
* @returns {Promise<IssueSoftwareCertificateResponse>} the response containing the certificate in many formats
*/
async issueSoftwareCertificate(orderId, password, keySize = null) {
try {
const client = this._getRestClient();

Check failure on line 246 in lib/amplia-client.js

View workflow job for this annotation

GitHub Actions / lint (12.x)

Expected indentation of 2 tabs but found 3

Check failure on line 246 in lib/amplia-client.js

View workflow job for this annotation

GitHub Actions / lint (16.x)

Expected indentation of 2 tabs but found 3
const request = new IssueSoftwareCertificateRequest({ orderId, password, keySize });

Check failure on line 247 in lib/amplia-client.js

View workflow job for this annotation

GitHub Actions / lint (12.x)

Expected indentation of 2 tabs but found 3

Check failure on line 247 in lib/amplia-client.js

View workflow job for this annotation

GitHub Actions / lint (16.x)

Expected indentation of 2 tabs but found 3
const response = await client.post('api/certificates/software', request);

Check failure on line 248 in lib/amplia-client.js

View workflow job for this annotation

GitHub Actions / lint (12.x)

Expected indentation of 2 tabs but found 3

Check failure on line 248 in lib/amplia-client.js

View workflow job for this annotation

GitHub Actions / lint (16.x)

Expected indentation of 2 tabs but found 3
const cert = new IssueSoftwareCertificateResponse(response.getBody());

Check failure on line 249 in lib/amplia-client.js

View workflow job for this annotation

GitHub Actions / lint (12.x)

Expected indentation of 2 tabs but found 3

Check failure on line 249 in lib/amplia-client.js

View workflow job for this annotation

GitHub Actions / lint (16.x)

Expected indentation of 2 tabs but found 3
return cert;

Check failure on line 250 in lib/amplia-client.js

View workflow job for this annotation

GitHub Actions / lint (12.x)

Expected indentation of 2 tabs but found 3

Check failure on line 250 in lib/amplia-client.js

View workflow job for this annotation

GitHub Actions / lint (16.x)

Expected indentation of 2 tabs but found 3
} catch (err) {
throw err;
}

Check failure on line 251 in lib/amplia-client.js

View workflow job for this annotation

GitHub Actions / lint (12.x)

Expected indentation of 1 tab but found 2

Check failure on line 251 in lib/amplia-client.js

View workflow job for this annotation

GitHub Actions / lint (16.x)

Expected indentation of 1 tab but found 2
}

/**
* Issues a PKCS#12 certificate order from Amplia
*
Expand Down

0 comments on commit 0db1f1e

Please sign in to comment.