aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-29 20:00:06 -0700
committerUnknwon <u@gogs.io>2016-08-29 20:00:06 -0700
commit28cf0e6aaa3cf9cc8e29524bd8e400587fc72d22 (patch)
tree03c2983e1e49650032e0e045c0b5dca90cb850dd /routers/api
parent92fb30c5260cc067da28ae3cd031b76f7b7976db (diff)
downloadgitea-28cf0e6aaa3cf9cc8e29524bd8e400587fc72d22.tar.gz
gitea-28cf0e6aaa3cf9cc8e29524bd8e400587fc72d22.zip
#3459 code quality improvement
Diffstat (limited to 'routers/api')
-rw-r--r--routers/api/v1/repo/label.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/label.go b/routers/api/v1/repo/label.go
index 5c34849385..705206cef7 100644
--- a/routers/api/v1/repo/label.go
+++ b/routers/api/v1/repo/label.go
@@ -50,7 +50,7 @@ func CreateLabel(ctx *context.APIContext, form api.CreateLabelOption) {
Color: form.Color,
RepoID: ctx.Repo.Repository.ID,
}
- if err := models.NewLabel(label); err != nil {
+ if err := models.NewLabels(label); err != nil {
ctx.Error(500, "NewLabel", err)
return
}