Skip to content

Commit 2ad09de

Browse files
committed
ignore stutters lint on UserOpenID
1 parent 2997ab8 commit 2ad09de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/user/openid.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
var ErrOpenIDNotExist = errors.New("OpenID is unknown")
1616

1717
// UserOpenID is the list of all OpenID identities of a user.
18-
//nolint
19-
type UserOpenID struct { //nolint
18+
// Since this is a middle table, name it OpenID is not suitable, so we ignore the lint here
19+
type UserOpenID struct { //revive:disable-line:exported
2020
ID int64 `xorm:"pk autoincr"`
2121
UID int64 `xorm:"INDEX NOT NULL"`
2222
URI string `xorm:"UNIQUE NOT NULL"`

0 commit comments

Comments
 (0)