0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-12-12 17:09:50 +01:00

Update routers/web/repo/issue_dev.go

Co-authored-by: yp05327 <576951401@qq.com>
This commit is contained in:
Lunny Xiao 2024-10-10 09:25:00 +08:00 committed by GitHub
parent cbeed1168f
commit 86e4f29d20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,7 @@ func CreateBranchFromIssue(ctx *context.Context) {
} }
gitRepo, err = gitrepo.OpenRepository(ctx, repo) gitRepo, err = gitrepo.OpenRepository(ctx, repo)
if err != nil { if err != nil {
ctx.ServerError("GetRepositoryByID", err) ctx.ServerError("OpenRepository", err)
return return
} }
defer gitRepo.Close() defer gitRepo.Close()