diff --git a/routers/web/repo/issue_comment.go b/routers/web/repo/issue_comment.go index ecaa9f05e47..cb5b2d80195 100644 --- a/routers/web/repo/issue_comment.go +++ b/routers/web/repo/issue_comment.go @@ -325,7 +325,7 @@ func DeleteComment(ctx *context.Context) { return } - if err := issue_service.DeleteComment(ctx, ctx.Doer, comment); err != nil { + if err = issue_service.DeleteComment(ctx, ctx.Doer, comment); err != nil { ctx.ServerError("DeleteComment", err) return }