From 7df2327424e948e54b9731e5ab651e889f38a772 Mon Sep 17 00:00:00 2001 From: Hailey Date: Mon, 12 Aug 2024 14:00:15 -0700 Subject: Upgrade API, implement XRPC rework (#4857) Co-authored-by: Matthieu Sieben --- src/lib/media/manip.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/lib/media/manip.ts') diff --git a/src/lib/media/manip.ts b/src/lib/media/manip.ts index 3e647004b..3f01e98c5 100644 --- a/src/lib/media/manip.ts +++ b/src/lib/media/manip.ts @@ -218,13 +218,7 @@ export async function safeDeleteAsync(path: string) { // Normalize is necessary for Android, otherwise it doesn't delete. const normalizedPath = normalizePath(path) try { - await Promise.allSettled([ - deleteAsync(normalizedPath, {idempotent: true}), - // HACK: Try this one too. Might exist due to api-polyfill hack. - deleteAsync(normalizedPath.replace(/\.jpe?g$/, '.bin'), { - idempotent: true, - }), - ]) + await deleteAsync(normalizedPath, {idempotent: true}) } catch (e) { console.error('Failed to delete file', e) } -- cgit 1.4.1