aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/issue_dependency.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/repo/issue_dependency.go')
-rw-r--r--routers/web/repo/issue_dependency.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/routers/web/repo/issue_dependency.go b/routers/web/repo/issue_dependency.go
index 781c166713..022ec3ae3e 100644
--- a/routers/web/repo/issue_dependency.go
+++ b/routers/web/repo/issue_dependency.go
@@ -80,10 +80,9 @@ func AddDependency(ctx *context.Context) {
} else if issues_model.IsErrCircularDependency(err) {
ctx.Flash.Error(ctx.Tr("repo.issues.dependency.add_error_cannot_create_circular"))
return
- } else {
- ctx.ServerError("CreateOrUpdateIssueDependency", err)
- return
}
+ ctx.ServerError("CreateOrUpdateIssueDependency", err)
+ return
}
}