fmt: apply gofmt formatting
This commit is contained in:
@@ -182,7 +182,7 @@ func (s *Service) BuildWatchPageData(ctx context.Context, malID int, titleCandid
|
||||
InitialMode: initialMode,
|
||||
AvailableModes: cloneSlice(baseData.AvailableModes),
|
||||
ModeSources: clientModeSources,
|
||||
Segments: cloneSlice(baseData.Segments),
|
||||
Segments: cloneSlice(baseData.Segments),
|
||||
}, nil
|
||||
}
|
||||
|
||||
@@ -365,5 +365,3 @@ func cloneModeSources(modeSources map[string]ModeSource) map[string]ModeSource {
|
||||
}
|
||||
return cloned
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -32,4 +32,4 @@ func (c *Client) GetAnimeByID(ctx context.Context, id int) (Anime, error) {
|
||||
|
||||
c.setCache(ctx, cacheKey, result.Data, ttl)
|
||||
return result.Data, nil
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +17,4 @@ func (c *Client) GetEpisodes(ctx context.Context, animeID int, page int) (Episod
|
||||
|
||||
err := c.getWithCache(ctx, cacheKey, 12*time.Hour, reqURL, &result)
|
||||
return result, err
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,4 +88,4 @@ func (c *Client) GetRecommendations(ctx context.Context, animeID int, limit int)
|
||||
|
||||
c.setCache(ctx, cacheKey, animes, time.Hour*24)
|
||||
return animes, nil
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,4 +81,4 @@ func (c *Client) GetTopAnime(ctx context.Context, page int) (TopAnimeResult, err
|
||||
Animes: result.Data,
|
||||
HasNextPage: result.Pagination.HasNextPage,
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,4 +82,4 @@ func (c *Client) GetSeasonsUpcoming(ctx context.Context, page int) (TopAnimeResu
|
||||
Animes: result.Data,
|
||||
HasNextPage: result.Pagination.HasNextPage,
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,4 +83,4 @@ func (c *Client) GetProducerByID(ctx context.Context, producerID int) (ProducerR
|
||||
|
||||
err := c.getWithCache(ctx, cacheKey, shortCacheTTL, reqURL, &result)
|
||||
return result, err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user