Skip to content

Commit a01d896

Browse files
committed
Fix template literal syntax in thumbnail cleanup
The processThumbnailDeletion function in src/cleanup/processors.ts had template literals that were incorrectly using double quotes, preventing interpolation. It also used non-existent variable names thumbnailUrl and storageUrlBase in error messages, which has been fixed to use medium.thumbnailUrl and STORAGE_URL_BASE. Assisted-by: Gemini CLI:gemini-2.0-pro-exp-02-05
1 parent d509011 commit a01d896

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cleanup/processors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ export async function processThumbnailDeletion(
3838
if (reconstructedUrl !== medium.thumbnailUrl) {
3939
if (!medium.thumbnailUrl.startsWith(STORAGE_URL_BASE)) {
4040
throw new Error(
41-
"The thumbnail URL ${thumbnailUrl} does not match the storage URL pattern ${storageUrlBase}!",
41+
`The thumbnail URL ${medium.thumbnailUrl} does not match the storage URL pattern ${STORAGE_URL_BASE}!`,
4242
);
4343
} else {
44-
throw new Error("The thumbnail URL ${medium.thumbnailUrl} is malformed.");
44+
throw new Error(`The thumbnail URL ${medium.thumbnailUrl} is malformed.`);
4545
}
4646
}
4747

0 commit comments

Comments
 (0)