Applied suggested linter changes

This commit is contained in:
2018-04-26 01:14:23 +02:00
parent a45c39a916
commit e90873b64f
13 changed files with 42 additions and 79 deletions

View File

@ -19,11 +19,7 @@ func Active(ctx *aero.Context) string {
sort.Slice(users, func(i, j int) bool {
if users[i].HasAvatar() != users[j].HasAvatar() {
if users[i].HasAvatar() {
return true
}
return false
return users[i].HasAvatar()
}
followersA := followCount[users[i].ID]
@ -101,11 +97,7 @@ func ActiveNoAvatar(ctx *aero.Context) string {
sort.Slice(users, func(i, j int) bool {
if users[i].HasAvatar() != users[j].HasAvatar() {
if users[i].HasAvatar() {
return true
}
return false
return users[i].HasAvatar()
}
followersA := followCount[users[i].ID]