aboutsummaryrefslogtreecommitdiff
path: root/internal/db/token.go
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-03-01 14:55:03 +0800
committerGitHub <noreply@github.com>2020-03-01 14:55:03 +0800
commitf04b2d43509816ecfda93aa5d0d1fd685d9b860f (patch)
tree548c7b0b4ff2f187569e74cf99c19742a44f18aa /internal/db/token.go
parent9c65798902386341a205d52b6b3842e1dc2c751a (diff)
lint: fix some Golang CI lint issues (#5955)
Diffstat (limited to 'internal/db/token.go')
-rw-r--r--internal/db/token.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/token.go b/internal/db/token.go
index 2e2f3492..e7cb7e99 100644
--- a/internal/db/token.go
+++ b/internal/db/token.go
@@ -58,7 +58,7 @@ func NewAccessToken(t *AccessToken) error {
if err != nil {
return err
} else if has {
- return errors.AccessTokenNameAlreadyExist{t.Name}
+ return errors.AccessTokenNameAlreadyExist{Name: t.Name}
}
_, err = x.Insert(t)