Fixed unused parameters

This commit is contained in:
2019-06-05 16:18:04 +09:00
parent 8b583d46b9
commit 1c0dc14317
15 changed files with 18 additions and 23 deletions

View File

@ -123,12 +123,12 @@ func Get(ctx aero.Context) error {
// Open Graph
customCtx := ctx.(*middleware.OpenGraphContext)
customCtx.OpenGraph = getOpenGraph(ctx, anime)
customCtx.OpenGraph = getOpenGraph(anime)
return ctx.HTML(components.Anime(anime, animeListItem, tracks, amvs, amvAppearances, episodes, friends, friendsAnimeListItems, episodeToFriends, user))
}
func getOpenGraph(ctx aero.Context, anime *arn.Anime) *arn.OpenGraph {
func getOpenGraph(anime *arn.Anime) *arn.OpenGraph {
description := anime.Summary
if len(description) > maxDescriptionLength {