From c62c1ce7451cb3876851c802d52254dd9fe6d91c Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Mon, 7 Mar 2022 20:40:59 -0800 Subject: Run linting --- packages/browser/src/methods/startRegistration.test.ts | 6 +++--- packages/browser/src/methods/startRegistration.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/browser/src/methods') diff --git a/packages/browser/src/methods/startRegistration.test.ts b/packages/browser/src/methods/startRegistration.test.ts index 683bae8..78b0157 100644 --- a/packages/browser/src/methods/startRegistration.test.ts +++ b/packages/browser/src/methods/startRegistration.test.ts @@ -203,7 +203,7 @@ describe('WebAuthnError', () => { authenticatorSelection: { residentKey: 'required', requireResidentKey: true, - } + }, }; const rejected = await expect(startRegistration(opts)).rejects; @@ -220,7 +220,7 @@ describe('WebAuthnError', () => { ...goodOpts1, authenticatorSelection: { userVerification: 'required', - } + }, }; const rejected = await expect(startRegistration(opts)).rejects; @@ -332,7 +332,7 @@ describe('WebAuthnError', () => { user: { ...goodOpts1.user, id: Array(65).fill('a').join(''), - } + }, }; const rejected = await expect(startRegistration(opts)).rejects; diff --git a/packages/browser/src/methods/startRegistration.ts b/packages/browser/src/methods/startRegistration.ts index 4cc92cc..4037092 100644 --- a/packages/browser/src/methods/startRegistration.ts +++ b/packages/browser/src/methods/startRegistration.ts @@ -40,7 +40,7 @@ export default async function startRegistration( let credential; try { credential = (await navigator.credentials.create(options)) as RegistrationCredential; - } catch(err) { + } catch (err) { throw identifyRegistrationError({ error: err as Error, options }); } -- cgit v1.2.3