diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-03-01 14:55:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-01 14:55:03 +0800 |
commit | f04b2d43509816ecfda93aa5d0d1fd685d9b860f (patch) | |
tree | 548c7b0b4ff2f187569e74cf99c19742a44f18aa /internal/db/mirror.go | |
parent | 9c65798902386341a205d52b6b3842e1dc2c751a (diff) |
lint: fix some Golang CI lint issues (#5955)
Diffstat (limited to 'internal/db/mirror.go')
-rw-r--r-- | internal/db/mirror.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/mirror.go b/internal/db/mirror.go index b85a62b2..dd767990 100644 --- a/internal/db/mirror.go +++ b/internal/db/mirror.go @@ -316,7 +316,7 @@ func getMirrorByRepoID(e Engine, repoID int64) (*Mirror, error) { if err != nil { return nil, err } else if !has { - return nil, errors.MirrorNotExist{repoID} + return nil, errors.MirrorNotExist{RepoID: repoID} } return m, nil } |