We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6e0e71 commit 0d4d4bfCopy full SHA for 0d4d4bf
routers/api/v1/repo/issue_comment.go
@@ -721,7 +721,7 @@ func deleteIssueComment(ctx *context.APIContext) {
721
if !ctx.IsSigned || (ctx.Doer.ID != comment.PosterID && !ctx.Repo.CanWriteIssuesOrPulls(comment.Issue.IsPull)) {
722
ctx.Status(http.StatusForbidden)
723
return
724
- } else if comment.Type != issues_model.CommentTypeComment && comment.Type == issues_model.CommentTypeCode {
+ } else if comment.Type != issues_model.CommentTypeComment && comment.Type != issues_model.CommentTypeCode {
725
ctx.Status(http.StatusNoContent)
726
727
}
0 commit comments