diff options
| author | Fuwn <[email protected]> | 2026-03-01 15:58:14 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-03-01 15:58:14 -0800 |
| commit | 5daabeb615d2b17bdca4694b21c5caf5da88c3bb (patch) | |
| tree | d539013d3107d4cf016a07ab1b4efbe965d917e6 /src/lib/Media | |
| parent | chore(biome): re-enable noDuplicateCase rule (diff) | |
| download | due.moe-5daabeb615d2b17bdca4694b21c5caf5da88c3bb.tar.xz due.moe-5daabeb615d2b17bdca4694b21c5caf5da88c3bb.zip | |
chore(biome): re-enable noDoubleEquals rule
Diffstat (limited to 'src/lib/Media')
| -rw-r--r-- | src/lib/Media/Manga/chapters.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Media/Manga/chapters.ts b/src/lib/Media/Manga/chapters.ts index 32e1f0fc..caac1fbd 100644 --- a/src/lib/Media/Manga/chapters.ts +++ b/src/lib/Media/Manga/chapters.ts @@ -38,7 +38,7 @@ const getManga = async ( break; } - const nullIfNullString = (s: string | null) => (s == 'null' ? null : s); + const nullIfNullString = (s: string | null) => (s === 'null' ? null : s); const get = async (title: string) => { try { return await ( @@ -195,7 +195,7 @@ export const chapterCount = async ( lastChapter = (await getChapterCount(manga.title.native)) || 0; } - if (lastChapter == 0) lastChapter = -1; + if (lastChapter === 0) lastChapter = -1; await database.chapters.put({ id: manga.id, |