DeleteAttachmentsByIssue deletes all attachments associated with the given issue.
(issueID int64, remove bool)
| 181 | |
| 182 | // DeleteAttachmentsByIssue deletes all attachments associated with the given issue. |
| 183 | func DeleteAttachmentsByIssue(issueID int64, remove bool) (int, error) { |
| 184 | attachments, err := GetAttachmentsByIssueID(issueID) |
| 185 | if err != nil { |
| 186 | return 0, err |
| 187 | } |
| 188 | |
| 189 | return DeleteAttachments(attachments, remove) |
| 190 | } |
| 191 | |
| 192 | // DeleteAttachmentsByComment deletes all attachments associated with the given comment. |
| 193 | func DeleteAttachmentsByComment(commentID int64, remove bool) (int, error) { |
nothing calls this directly
no test coverage detected