remove unnecessary coalescing

This commit is contained in:
Siddharth Singh 2024-08-25 16:25:36 +05:30
parent 6ff90d63bb
commit cf4dc8627b
No known key found for this signature in database

View file

@ -10,7 +10,7 @@ function renderAttachment(
const url = tags.find(([name]) => name === 'url')?.[1]; const url = tags.find(([name]) => name === 'url')?.[1];
const m = tags.find(([name]) => name === 'm')?.[1] ?? getUrlMediaType(url!); const m = tags.find(([name]) => name === 'm')?.[1] ?? getUrlMediaType(url!);
const alt = tags.find(([name]) => name === 'alt')?.slice(1).join(' ') || 'picture'; const alt = tags.find(([name]) => name === 'alt')?.slice(1).join(' ');
const cid = tags.find(([name]) => name === 'cid')?.[1]; const cid = tags.find(([name]) => name === 'cid')?.[1];
const dim = tags.find(([name]) => name === 'dim')?.[1]; const dim = tags.find(([name]) => name === 'dim')?.[1];
const blurhash = tags.find(([name]) => name === 'blurhash')?.[1]; const blurhash = tags.find(([name]) => name === 'blurhash')?.[1];