Skip to content

Commit 1c659aa

Browse files
committed
Remove redundant async function declaration in deleteImage
1 parent b9bc28d commit 1c659aa

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/utils/imageUtils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,8 @@ export async function deleteImage(
7070
supabase: SupabaseClient,
7171
fileUrl: string
7272
): Promise<void> {
73-
async function deleteImage(fileUrl: string) {
7473
const { filePath } = extractFilePathAndNameFromUrl(fileUrl)
75-
// ...rest of the deletion logic...
76-
}
74+
7775
const { error: deleteError } = await supabase
7876
.storage
7977
.from('images')

0 commit comments

Comments
 (0)