Skip to content

Commit 0051aaa

Browse files
remove unused/redundant IsPrivate field from Group struct
1 parent 7fc73a9 commit 0051aaa

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

models/group/group.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ type Group struct {
2424
ID int64 `xorm:"pk autoincr"`
2525
OwnerID int64 `xorm:"UNIQUE(s) index NOT NULL"`
2626
OwnerName string
27-
Owner *user_model.User `xorm:"-"`
28-
LowerName string `xorm:"UNIQUE(s) INDEX NOT NULL"`
29-
Name string `xorm:"TEXT INDEX NOT NULL"`
30-
Description string `xorm:"TEXT"`
31-
IsPrivate bool
27+
Owner *user_model.User `xorm:"-"`
28+
LowerName string `xorm:"UNIQUE(s) INDEX NOT NULL"`
29+
Name string `xorm:"TEXT INDEX NOT NULL"`
30+
Description string `xorm:"TEXT"`
3231
Visibility structs.VisibleType `xorm:"NOT NULL DEFAULT 0"`
3332
Avatar string `xorm:"VARCHAR(64)"`
3433

0 commit comments

Comments
 (0)