diff options
author | Unknwon <u@gogs.io> | 2016-12-22 19:58:30 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-12-22 19:58:30 -0500 |
commit | 03f7f3ee67f9b4d828c2dbc938cbf9648bf53377 (patch) | |
tree | 9c3f9c4d91eec0df22a8f6fdbe703ada94efcaad /routers/api/v1/repo/label.go | |
parent | 6383bf748072279a101bf5ecdc0c56a0338f3046 (diff) |
Some code renaming
Diffstat (limited to 'routers/api/v1/repo/label.go')
-rw-r--r-- | routers/api/v1/repo/label.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/repo/label.go b/routers/api/v1/repo/label.go index 705206ce..981eaef1 100644 --- a/routers/api/v1/repo/label.go +++ b/routers/api/v1/repo/label.go @@ -26,7 +26,7 @@ func ListLabels(ctx *context.APIContext) { } func GetLabel(ctx *context.APIContext) { - label, err := models.GetLabelInRepoByID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id")) + label, err := models.GetLabelOfRepoByID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id")) if err != nil { if models.IsErrLabelNotExist(err) { ctx.Status(404) @@ -63,7 +63,7 @@ func EditLabel(ctx *context.APIContext, form api.EditLabelOption) { return } - label, err := models.GetLabelInRepoByID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id")) + label, err := models.GetLabelOfRepoByID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id")) if err != nil { if models.IsErrLabelNotExist(err) { ctx.Status(404) |