From ed90b5c7aa7141a087da1f4899e1f8d3eca3eb5c Mon Sep 17 00:00:00 2001 From: mkelvers Date: Thu, 11 Jun 2026 14:51:57 +0200 Subject: [PATCH] fix: remove nil error return --- integrations/jikan/seasons.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/integrations/jikan/seasons.go b/integrations/jikan/seasons.go index 731d367..cdaa0a2 100644 --- a/integrations/jikan/seasons.go +++ b/integrations/jikan/seasons.go @@ -48,17 +48,15 @@ func (c *Client) getSeasonList(ctx context.Context, page int, season string) (To } // seedRandomPool seeds the in-memory pool of random anime -func (c *Client) seedRandomPool(ctx context.Context) error { +func (c *Client) seedRandomPool(ctx context.Context) { if !c.markRandomPoolInitialized() { - return nil + return } c.loadCachedRandomPool(ctx) // Fetch a solid baseline in the background, then start refreshing. go c.seedRandomPoolBaseline() - - return nil } func (c *Client) markRandomPoolInitialized() bool { @@ -207,7 +205,7 @@ func (c *Client) GetRandomAnime(ctx context.Context) (Anime, error) { c.poolMu.Unlock() if !initialized { - _ = c.seedRandomPool(ctx) + c.seedRandomPool(ctx) } c.poolMu.RLock()