diff options
author | Gusted <williamzijl7@hotmail.com> | 2021-11-08 08:04:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-08 09:04:13 +0200 |
commit | ebaf4c48ea278955c5d79c5f37a2039ccb3cf775 (patch) | |
tree | 574893d946aaaf14a752d7e6a37408e4a0f85a9d /modules/convert/convert.go | |
parent | 513951bc16f31c4a2821319baea846735f341a0e (diff) | |
download | gitea-ebaf4c48ea278955c5d79c5f37a2039ccb3cf775.tar.gz gitea-ebaf4c48ea278955c5d79c5f37a2039ccb3cf775.zip |
Avoid double imports (#17569)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'modules/convert/convert.go')
-rw-r--r-- | modules/convert/convert.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/convert/convert.go b/modules/convert/convert.go index 3c309a82f8..2960f7741a 100644 --- a/modules/convert/convert.go +++ b/modules/convert/convert.go @@ -15,7 +15,6 @@ import ( "code.gitea.io/gitea/models/login" "code.gitea.io/gitea/modules/git" "code.gitea.io/gitea/modules/log" - "code.gitea.io/gitea/modules/structs" api "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/modules/util" "code.gitea.io/gitea/services/webhook" @@ -158,7 +157,7 @@ func ToVerification(c *git.Commit) *api.PayloadCommitVerification { commitVerification.Payload = c.Signature.Payload } if verif.SigningUser != nil { - commitVerification.Signer = &structs.PayloadUser{ + commitVerification.Signer = &api.PayloadUser{ Name: verif.SigningUser.Name, Email: verif.SigningUser.Email, } |