mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-08 05:35:17 +02:00
appease the linter
This commit is contained in:
@@ -140,14 +140,13 @@ func repoAssignment() func(ctx *context.APIContext) {
|
||||
userName := ctx.PathParam("username")
|
||||
repoName := ctx.PathParam("reponame")
|
||||
var gid int64
|
||||
group := ctx.PathParam("group_id")
|
||||
if group != "" {
|
||||
gid, _ = strconv.ParseInt(group, 10, 64)
|
||||
groupParam := ctx.PathParam("group_id")
|
||||
if groupParam != "" {
|
||||
gid, _ = strconv.ParseInt(groupParam, 10, 64)
|
||||
if gid == 0 {
|
||||
ctx.Redirect(strings.Replace(ctx.Req.URL.RequestURI(), "/0/", "/", 1), 307)
|
||||
return
|
||||
}
|
||||
group += "/"
|
||||
}
|
||||
var (
|
||||
owner *user_model.User
|
||||
|
||||
@@ -265,7 +265,6 @@ func GetPullRequestByBaseHead(ctx *context.APIContext) {
|
||||
} else {
|
||||
owner, name = split[0], split[1]
|
||||
}
|
||||
|
||||
} else {
|
||||
owner = split[0]
|
||||
gid = ctx.Repo.Repository.GroupID
|
||||
|
||||
Reference in New Issue
Block a user