summaryrefslogtreecommitdiffstats
path: root/routers/repo/issue_dependency.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/issue_dependency.go')
-rw-r--r--routers/repo/issue_dependency.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/repo/issue_dependency.go b/routers/repo/issue_dependency.go
index 055b5ed2af..8a83c7bae3 100644
--- a/routers/repo/issue_dependency.go
+++ b/routers/repo/issue_dependency.go
@@ -93,9 +93,6 @@ func RemoveDependency(ctx *context.Context) {
return
}
- // Redirect
- ctx.Redirect(issue.HTMLURL(), http.StatusSeeOther)
-
// Dependency Type
depTypeStr := ctx.Req.PostForm.Get("dependencyType")
@@ -126,4 +123,7 @@ func RemoveDependency(ctx *context.Context) {
ctx.ServerError("RemoveIssueDependency", err)
return
}
+
+ // Redirect
+ ctx.Redirect(issue.HTMLURL(), http.StatusSeeOther)
}