[ci skip] improve readability

This commit is contained in:
syuilo 2023-04-13 09:09:29 +09:00
parent 3f57119aea
commit 2a7ba37996
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export class CustomEmojiService {
if (!Array.isArray(JSON.parse(value))) return undefined; // 古いバージョンの壊れたキャッシュが残っていることがある(そのうち消す) if (!Array.isArray(JSON.parse(value))) return undefined; // 古いバージョンの壊れたキャッシュが残っていることがある(そのうち消す)
return new Map(JSON.parse(value).map((x: Serialized<Emoji>) => [x.name, { return new Map(JSON.parse(value).map((x: Serialized<Emoji>) => [x.name, {
...x, ...x,
updatedAt: x.updatedAt && new Date(x.updatedAt), updatedAt: x.updatedAt ? new Date(x.updatedAt) : null,
}])); }]));
}, },
}); });