Skip to content

Commit

Permalink
style: format code with Prettier (#2503)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
deepsource-autofix[bot] authored Feb 14, 2024
1 parent cab3d94 commit ac1429f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/quicktype-core/src/input/JSONSchemaInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() : "";
Expand Down Expand Up @@ -399,7 +399,7 @@ class Canonizer {
private readonly _map = new EqualityMap<Ref, Location>();
private readonly _schemaAddressesAdded = new Set<string>();

constructor(private readonly _ctx: RunContext) { }
constructor(private readonly _ctx: RunContext) {}

private addIDs(schema: any, loc: Location) {
if (schema === null) return;
Expand Down Expand Up @@ -536,7 +536,7 @@ class Resolver {
private readonly _ctx: RunContext,
private readonly _store: JSONSchemaStore,
private readonly _canonizer: Canonizer
) { }
) {}

private async tryResolveVirtualRef(
fetchBase: Location,
Expand All @@ -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");
Expand Down

0 comments on commit ac1429f

Please sign in to comment.