From ac1429f4d5e4634a233a555b21e0924e623e1f91 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Wed, 14 Feb 2024 14:31:43 +0000 Subject: [PATCH] style: format code with Prettier (#2503) This commit fixes the style issues introduced in f440afd according to the output from Prettier. Details: None Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> --- packages/quicktype-core/src/input/JSONSchemaInput.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/quicktype-core/src/input/JSONSchemaInput.ts b/packages/quicktype-core/src/input/JSONSchemaInput.ts index 21827c467..8fc74e6dd 100644 --- a/packages/quicktype-core/src/input/JSONSchemaInput.ts +++ b/packages/quicktype-core/src/input/JSONSchemaInput.ts @@ -226,7 +226,7 @@ export class Ref { get name(): string { const path = Array.from(this.path); - for (; ;) { + for (;;) { const e = path.pop(); if (e === undefined || e.kind === PathElementKind.Root) { let name = this.addressURI !== undefined ? this.addressURI.filename() : ""; @@ -399,7 +399,7 @@ class Canonizer { private readonly _map = new EqualityMap(); private readonly _schemaAddressesAdded = new Set(); - constructor(private readonly _ctx: RunContext) { } + constructor(private readonly _ctx: RunContext) {} private addIDs(schema: any, loc: Location) { if (schema === null) return; @@ -536,7 +536,7 @@ class Resolver { private readonly _ctx: RunContext, private readonly _store: JSONSchemaStore, private readonly _canonizer: Canonizer - ) { } + ) {} private async tryResolveVirtualRef( fetchBase: Location, @@ -548,7 +548,7 @@ class Resolver { // we don't know its $id mapping yet, which means we don't know where we // will end up. What we do if we encounter a new schema is add all its // IDs first, and then try to canonize again. - for (; ;) { + for (;;) { const loc = this._canonizer.canonize(fetchBase, virtualRef); const canonical = loc.canonicalRef; assert(canonical.hasAddress, "Canonical ref can't be resolved without an address");