From ebaf4c48ea278955c5d79c5f37a2039ccb3cf775 Mon Sep 17 00:00:00 2001 From: Gusted Date: Mon, 8 Nov 2021 08:04:13 +0100 Subject: Avoid double imports (#17569) Co-authored-by: Lunny Xiao Co-authored-by: techknowlogick Co-authored-by: wxiaoguang --- modules/convert/convert.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/convert/convert.go') 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, } -- cgit v1.2.3