mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 19:47:07 +09:00
#3459 code quality improvement
This commit is contained in:
1 parent
92fb30c526
commit
28cf0e6aaa
10 files changed
+991
-763
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user