appease the linter

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2026-04-02 20:01:01 -04:00
parent 9f48e36108
commit 79bc3997fe
4 changed files with 9 additions and 6 deletions
+3 -4
View File
@@ -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
-1
View File
@@ -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