aboutsummaryrefslogtreecommitdiff
path: root/internal/route/repo
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-03-01 14:55:03 +0800
committerGitHub <noreply@github.com>2020-03-01 14:55:03 +0800
commitf04b2d43509816ecfda93aa5d0d1fd685d9b860f (patch)
tree548c7b0b4ff2f187569e74cf99c19742a44f18aa /internal/route/repo
parent9c65798902386341a205d52b6b3842e1dc2c751a (diff)
lint: fix some Golang CI lint issues (#5955)
Diffstat (limited to 'internal/route/repo')
-rw-r--r--internal/route/repo/issue.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/route/repo/issue.go b/internal/route/repo/issue.go
index c8756d28..5495402a 100644
--- a/internal/route/repo/issue.go
+++ b/internal/route/repo/issue.go
@@ -1071,10 +1071,9 @@ func DeleteLabel(c *context.Context) {
c.Flash.Success(c.Tr("repo.issues.label_deletion_success"))
}
- c.JSON(200, map[string]interface{}{
+ c.JSONSuccess(map[string]interface{}{
"redirect": c.Repo.MakeURL("labels"),
})
- return
}
func Milestones(c *context.Context) {