Apply suggestion from @coderabbitai[bot]

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Samidy 2026-03-12 05:04:42 +03:00 committed by GitHub
parent 3814358f0d
commit 34c3f8dbcf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -189,10 +189,10 @@ export const getExtensionFromBlob = async (blob) => {
if (format) return format;
if (blob.type.includes('video')) return 'mp4';
if (mimeType === 'audio/flac') return 'flac';
if (mimeType === 'audio/ogg') return 'ogg';
if (mimeType === 'audio/mp4' || mimeType === 'audio/x-m4a') return 'mp4';
if (mimeType === 'audio/mp3' || mimeType === 'audio/mpeg') return 'mp3';
if (blob.type === 'audio/flac') return 'flac';
if (blob.type === 'audio/ogg') return 'ogg';
if (blob.type === 'audio/mp4' || blob.type === 'audio/x-m4a') return 'mp4';
if (blob.type === 'audio/mp3' || blob.type === 'audio/mpeg') return 'mp3';
return 'flac';
};