Enabled maligned linter

This commit is contained in:
2019-11-18 14:31:52 +09:00
parent 12c752a272
commit cafb43aa17
3 changed files with 3 additions and 6 deletions

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.