Skip to content

Commit 253b726

Browse files
committed
Fix indentation: convert tabs to spaces in attachment upload loop
1 parent 62b84a5 commit 253b726

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

‎src/publish/confluence/confluence.ts‎

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -435,26 +435,26 @@ async function publish(
435435
LogPrefix.ATTACHMENT,
436436
);
437437

438-
const uploadAttachmentsResult: unknown[] = [];
439-
440-
for (const att of attachmentsToUpload) {
441-
// Start exactly ONE upload by calling the helper with a single attachment
442-
const tasks = uploadAttachments(
443-
publishFiles.baseDir,
444-
[att], // <-- one at a time
445-
toUpdate.id,
446-
fileName,
447-
existingAttachments,
448-
) as Promise<unknown>[]; // uploadAttachments returns an array of Promises
449-
450-
const res = await tasks[0];
451-
uploadAttachmentsResult.push(res);
452-
453-
// short backoff (milliseconds)
454-
const t0 = performance.now();
455-
await new Promise<void>(r => setTimeout(r, 800)); // 0.8s
456-
trace("[ATTACHMENT] sleptMs", { ms: Math.round(performance.now() - t0) }, LogPrefix.ATTACHMENT);
457-
}
438+
const uploadAttachmentsResult: unknown[] = [];
439+
440+
for (const att of attachmentsToUpload) {
441+
// Start exactly ONE upload by calling the helper with a single attachment
442+
const tasks = uploadAttachments(
443+
publishFiles.baseDir,
444+
[att], // <-- one at a time
445+
toUpdate.id,
446+
fileName,
447+
existingAttachments,
448+
) as Promise<unknown>[]; // uploadAttachments returns an array of Promises
449+
450+
const res = await tasks[0];
451+
uploadAttachmentsResult.push(res);
452+
453+
// short backoff (milliseconds)
454+
const t0 = performance.now();
455+
await new Promise<void>(r => setTimeout(r, 800)); // 0.8s
456+
trace("[ATTACHMENT] sleptMs", { ms: Math.round(performance.now() - t0) }, LogPrefix.ATTACHMENT);
457+
}
458458
trace(
459459
"uploadAttachmentsResult",
460460
uploadAttachmentsResult,

0 commit comments

Comments
 (0)