From a59634a1a9b0393622fb121fbe229132c01a2624 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Fri, 18 Aug 2023 13:59:11 -0700 Subject: Use single-quotes and increase line width --- packages/server/src/helpers/parseAuthenticatorData.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'packages/server/src/helpers/parseAuthenticatorData.ts') diff --git a/packages/server/src/helpers/parseAuthenticatorData.ts b/packages/server/src/helpers/parseAuthenticatorData.ts index 9e02037..497f2d4 100644 --- a/packages/server/src/helpers/parseAuthenticatorData.ts +++ b/packages/server/src/helpers/parseAuthenticatorData.ts @@ -1,9 +1,9 @@ import { AuthenticationExtensionsAuthenticatorOutputs, decodeAuthenticatorExtensions, -} from "./decodeAuthenticatorExtensions.ts"; -import { isoCBOR, isoUint8Array } from "./iso/index.ts"; -import { COSEPublicKey } from "./cose.ts"; +} from './decodeAuthenticatorExtensions.ts'; +import { isoCBOR, isoUint8Array } from './iso/index.ts'; +import { COSEPublicKey } from './cose.ts'; /** * Make sense of the authData buffer contained in an Attestation @@ -63,8 +63,7 @@ export function parseAuthenticatorData( pointer += firstEncoded.byteLength; } - let extensionsData: AuthenticationExtensionsAuthenticatorOutputs | undefined = - undefined; + let extensionsData: AuthenticationExtensionsAuthenticatorOutputs | undefined = undefined; let extensionsDataBuffer: Uint8Array | undefined = undefined; if (flags.ed) { @@ -76,7 +75,7 @@ export function parseAuthenticatorData( // Pointer should be at the end of the authenticator data, otherwise too much data was sent if (authData.byteLength > pointer) { - throw new Error("Leftover bytes detected while parsing authenticator data"); + throw new Error('Leftover bytes detected while parsing authenticator data'); } return _parseAuthenticatorDataInternals.stubThis({ -- cgit v1.2.3