fixed lint + fmt

This commit is contained in:
kolaente 2018-06-08 12:58:37 +02:00
parent 0879a36cd7
commit 425e765664
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -109,10 +109,9 @@ func RemoveDependency(ctx *context.Context) {
if models.IsErrDependencyNotExists(err) {
ctx.Flash.Error(ctx.Tr("repo.issues.dependency.add_error_dep_not_exist"))
return
} else {
ctx.ServerError("RemoveIssueDependency", err)
return
}
ctx.ServerError("RemoveIssueDependency", err)
return
}
ctx.Redirect(fmt.Sprintf("%s/issues/%d", ctx.Repo.RepoLink, issueIndex), http.StatusSeeOther)