From a5ea212177c81b2ea58370cfd81fd496287c1e36 Mon Sep 17 00:00:00 2001 From: SaitoGH Date: Wed, 31 Jul 2024 18:50:53 +0800 Subject: [PATCH] Removal of an extra If statement --- provider/mangadex/chapters.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/provider/mangadex/chapters.go b/provider/mangadex/chapters.go index 6d95e9bd..bca0ca0f 100644 --- a/provider/mangadex/chapters.go +++ b/provider/mangadex/chapters.go @@ -86,10 +86,6 @@ func (m *Mangadex) ChaptersOf(manga *source.Manga) ([]*source.Chapter, error) { if currOffset >= list.Total { break } - - if currOffset >= list.Total { - break - } } slices.SortFunc(chapters, func(a, b *source.Chapter) bool {