diff options
| author | Fuwn <[email protected]> | 2023-09-03 18:40:25 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-03 18:40:25 -0700 |
| commit | 530ff1b91f3588eb870259f50bc114fbbac3b8d0 (patch) | |
| tree | 3b5a0d2a1a76874bf5daa157048dd04afa505f2b /src/lib/AniList | |
| parent | feat(settings): move last prune times to store (diff) | |
| download | due.moe-530ff1b91f3588eb870259f50bc114fbbac3b8d0.tar.xz due.moe-530ff1b91f3588eb870259f50bc114fbbac3b8d0.zip | |
fix: remove useless casts
Diffstat (limited to 'src/lib/AniList')
| -rw-r--r-- | src/lib/AniList/media.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/AniList/media.ts b/src/lib/AniList/media.ts index ebf8c72f..7cc42827 100644 --- a/src/lib/AniList/media.ts +++ b/src/lib/AniList/media.ts @@ -66,11 +66,11 @@ export const mediaListCollection = async ( currentCacheMinutes = value.cacheMinutes; }); - if (String(currentLastPruneAt) == '') { + if (String(currentLastPruneAt) === '') { if (type === Type.Anime) { - lastPruneTimes.setKey('anime', new Date().getTime().toString()); + lastPruneTimes.setKey('anime', new Date().getTime()); } else { - lastPruneTimes.setKey('manga', new Date().getTime().toString()); + lastPruneTimes.setKey('manga', new Date().getTime()); } } else { if ( @@ -79,10 +79,10 @@ export const mediaListCollection = async ( forcePrune ) { if (type === Type.Anime) { - lastPruneTimes.setKey('anime', new Date().getTime().toString()); + lastPruneTimes.setKey('anime', new Date().getTime()); anime.set(''); } else { - lastPruneTimes.setKey('manga', new Date().getTime().toString()); + lastPruneTimes.setKey('manga', new Date().getTime()); manga.set(''); } |