Fixed a few linter hints

This commit is contained in:
2019-06-07 10:03:16 +09:00
parent 0e4f7fe6ec
commit f464e830bf
21 changed files with 52 additions and 29 deletions

View File

@ -6,8 +6,8 @@ import (
"github.com/animenotifier/notify.moe/utils/animediff"
"github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/mal"
"github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/utils"
)
@ -122,7 +122,8 @@ func compare(animes []*arn.Anime) []*utils.MALComparison {
// diff returns all the differences between an anime and its MAL counterpart.
func diff(anime *arn.Anime, malAnime *mal.Anime) []animediff.Difference {
// nolint (prealloc linter would complain, but this is best left as nil by default)
// Prealloc linter would complain, but this is best left as nil by default.
// nolint:prealloc
var differences []animediff.Difference
// We'll use the following diffs