Skip to content

Commit 8e8e5e9

Browse files
committed
style: fix prettier formatting in image processing files
1 parent 19aead0 commit 8e8e5e9

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

scripts/notion-fetch/__tests__/imageUrlExpiration.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,7 @@ describe("Image URL Expiration Handling (Issue #94)", () => {
481481

482482
n2m.pageToMarkdown.mockResolvedValue([]);
483483
n2m.toMarkdownString.mockReturnValue({
484-
parent:
485-
"![Image](https://example.com/image.jpg)\n\n:smile: Emoji text",
484+
parent: "![Image](https://example.com/image.jpg)\n\n:smile: Emoji text",
486485
});
487486

488487
const axios = vi.mocked(await import("axios")).default;

scripts/notion-fetch/imageProcessing.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ export function isExpiredUrlError(error: any): boolean {
5858

5959
// Check error message for expiration indicators
6060
const errorMessage = error?.message?.toLowerCase() || "";
61-
if (
62-
errorMessage.includes("expired") ||
63-
errorMessage.includes("signature")
64-
) {
61+
if (errorMessage.includes("expired") || errorMessage.includes("signature")) {
6562
return true;
6663
}
6764

@@ -952,7 +949,8 @@ export async function downloadAndProcessImage(
952949
errorMessage = `Timeout downloading image ${index + 1} from ${url}`;
953950
} else if (isExpiredUrlError(error)) {
954951
// ✅ PHASE 2 FIX: Detect and log expired URL errors specifically (Issue #94)
955-
errorMessage = `❌ Image URL expired (403) for image ${index + 1}: ${url}\n` +
952+
errorMessage =
953+
`❌ Image URL expired (403) for image ${index + 1}: ${url}\n` +
956954
` This indicates the image was processed more than 1 hour after URL generation.\n` +
957955
` Phase 1 reordering should prevent this - if you see this message, please report it.`;
958956
console.error(chalk.red(errorMessage));

0 commit comments

Comments
 (0)