Enabled maligned linter

This commit is contained in:
Eduard Urbach 2019-11-18 14:31:52 +09:00
parent 12c752a272
commit cafb43aa17
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
3 changed files with 3 additions and 6 deletions

View File

@ -13,7 +13,6 @@ linters:
- gocyclo
- gocognit
- gosec
- maligned
- stylecheck
- funlen
- wsl

View File

@ -21,7 +21,6 @@ type Group struct {
Image Image `json:"image"`
Description string `json:"description" editable:"true" type:"textarea"`
Rules string `json:"rules" editable:"true" type:"textarea"`
Restricted bool `json:"restricted" editable:"true" tooltip:"Restricted groups can only be joined with the founder's permission."`
Tags []string `json:"tags" editable:"true"`
Members []*GroupMember `json:"members"`
Neighbors []GroupID `json:"neighbors"`
@ -36,6 +35,9 @@ type Group struct {
// Mutex
membersMutex sync.Mutex
// Moved this boolean field to the bottom because the structure consumes less bytes that way
Restricted bool `json:"restricted" editable:"true" tooltip:"Restricted groups can only be joined with the founder's permission."`
}
// Link returns the URI to the group page.

View File

@ -9,10 +9,6 @@ import (
"github.com/animenotifier/notify.moe/arn"
)
var (
empty = struct{}{}
)
func Install(app *aero.Application) {
api := graphql.New(arn.DB)