Fixed scopelint complaints
This commit is contained in:
parent
656645b4d0
commit
a3f04fbd2f
@ -12,5 +12,4 @@ linters:
|
|||||||
- gochecknoinits
|
- gochecknoinits
|
||||||
- gocyclo
|
- gocyclo
|
||||||
- maligned
|
- maligned
|
||||||
- scopelint
|
|
||||||
- stylecheck
|
- stylecheck
|
@ -91,6 +91,7 @@ func Get(ctx aero.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for i := 0; i < 7; i++ {
|
for i := 0; i < 7; i++ {
|
||||||
|
// nolint:scopelint
|
||||||
sort.Slice(days[i].Entries, func(a, b int) bool {
|
sort.Slice(days[i].Entries, func(a, b int) bool {
|
||||||
airingA := days[i].Entries[a].Episode.AiringDate.Start
|
airingA := days[i].Entries[a].Episode.AiringDate.Start
|
||||||
airingB := days[i].Entries[b].Episode.AiringDate.Start
|
airingB := days[i].Entries[b].Episode.AiringDate.Start
|
||||||
|
@ -26,6 +26,7 @@ func main() {
|
|||||||
|
|
||||||
for _, characters := range malIDToCharacters {
|
for _, characters := range malIDToCharacters {
|
||||||
if len(characters) > 1 {
|
if len(characters) > 1 {
|
||||||
|
// nolint:scopelint
|
||||||
sort.Slice(characters, func(i, j int) bool {
|
sort.Slice(characters, func(i, j int) bool {
|
||||||
return len(characters[i].Likes) > len(characters[j].Likes)
|
return len(characters[i].Likes) > len(characters[j].Likes)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user