Skip to content

Commit 7b39108

Browse files
committed
Fix lint & test
1 parent 2ee1315 commit 7b39108

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

models/user/main_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ import (
1414
func TestMain(m *testing.M) {
1515
db.MainTest(m, filepath.Join("..", ".."),
1616
"email_address.yml",
17+
"user_redirect.yml",
1718
)
1819
}

models/user/redirect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (err ErrUserRedirectNotExist) Error() string {
2828
}
2929

3030
// UserRedirect represents that a user name should be redirected to another
31-
type UserRedirect struct { // nolint
31+
type UserRedirect struct { //nolint
3232
ID int64 `xorm:"pk autoincr"`
3333
LowerName string `xorm:"UNIQUE(s) INDEX NOT NULL"`
3434
RedirectUserID int64 // userID to redirect to

0 commit comments

Comments
 (0)