Skip to content

Commit fa68046

Browse files
committed
chore(xsd): apply biome line-wrap on ingest.ts
1 parent fca2d45 commit fa68046

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

scripts/ingest-xsd/ingest.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ export interface IngestStats {
7272

7373
export async function ingestSchemaSet(opts: IngestSchemaSetOptions): Promise<IngestStats> {
7474
const log = opts.verbose ? (msg: string) => console.log(msg) : () => {};
75-
log(`[xsd:ingest] parsing schemas from ${opts.schemaDir} (entrypoints: ${opts.entrypoints.join(", ")})...`);
75+
log(
76+
`[xsd:ingest] parsing schemas from ${opts.schemaDir} (entrypoints: ${opts.entrypoints.join(", ")})...`,
77+
);
7678
const parseResult = await parseSchemaSet({
7779
schemaDir: opts.schemaDir,
7880
entrypoints: opts.entrypoints,
@@ -703,7 +705,11 @@ function parseMaxOccurs(raw: string | undefined): number | null {
703705
// to stay under the limit for the widest row we send (xsd_attr_edges, 9 cols).
704706
const BATCH_CHUNK = 500;
705707

706-
async function inChunks<T>(items: T[], size: number, fn: (chunk: T[]) => Promise<void>): Promise<void> {
708+
async function inChunks<T>(
709+
items: T[],
710+
size: number,
711+
fn: (chunk: T[]) => Promise<void>,
712+
): Promise<void> {
707713
for (let i = 0; i < items.length; i += size) {
708714
await fn(items.slice(i, i + size));
709715
}

0 commit comments

Comments
 (0)