Skip to content

Commit

Permalink
Update func name
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty287 committed Jan 12, 2022
1 parent 5b90bf0 commit 0dc9bbc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions routers/api/v1/repo/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ func CreateIssueDependency(ctx *context.APIContext) {
// "404":
// description: the issue does not exist

createDep(ctx, models.DependencyTypeBlockedBy)
createIssueDependency(ctx, models.DependencyTypeBlockedBy)
}

// RemoveIssueDependency remove an issue dependency
Expand Down Expand Up @@ -1051,7 +1051,7 @@ func RemoveIssueDependency(ctx *context.APIContext) {
// "200":
// "$ref": "#/responses/Issue"

removeDep(ctx, models.DependencyTypeBlockedBy)
removeIssueDependency(ctx, models.DependencyTypeBlockedBy)
}

// GetIssueBlocks list issues that are blocked by this issue
Expand Down Expand Up @@ -1167,7 +1167,7 @@ func CreateIssueBlocking(ctx *context.APIContext) {
// "404":
// description: the issue does not exist

createDep(ctx, models.DependencyTypeBlocking)
createIssueDependency(ctx, models.DependencyTypeBlocking)
}

// RemoveIssueBlocking unblock the issue given in the body by the issue in path
Expand Down Expand Up @@ -1201,10 +1201,10 @@ func RemoveIssueBlocking(ctx *context.APIContext) {
// "200":
// "$ref": "#/responses/Issue"

removeDep(ctx, models.DependencyTypeBlocking)
removeIssueDependency(ctx, models.DependencyTypeBlocking)
}

func createDep(ctx *context.APIContext, t models.DependencyType) {
func createIssueDependency(ctx *context.APIContext, t models.DependencyType) {
if !ctx.Repo.Repository.IsDependenciesEnabled() {
ctx.NotFound()
return
Expand Down Expand Up @@ -1254,7 +1254,7 @@ func createDep(ctx *context.APIContext, t models.DependencyType) {
ctx.JSON(http.StatusCreated, convert.ToAPIIssue(dep))
}

func removeDep(ctx *context.APIContext, t models.DependencyType) {
func removeIssueDependency(ctx *context.APIContext, t models.DependencyType) {
if !ctx.Repo.Repository.IsDependenciesEnabled() {
ctx.NotFound()
return
Expand Down

0 comments on commit 0dc9bbc

Please sign in to comment.