mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 12:43:09 +02:00
[ci skip] improve readability
This commit is contained in:
parent
3f57119aea
commit
2a7ba37996
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ export class CustomEmojiService {
|
|||
if (!Array.isArray(JSON.parse(value))) return undefined; // 古いバージョンの壊れたキャッシュが残っていることがある(そのうち消す)
|
||||
return new Map(JSON.parse(value).map((x: Serialized<Emoji>) => [x.name, {
|
||||
...x,
|
||||
updatedAt: x.updatedAt && new Date(x.updatedAt),
|
||||
updatedAt: x.updatedAt ? new Date(x.updatedAt) : null,
|
||||
}]));
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue