Skip to content

Commit

Permalink
backport fix of go-gitea#18973
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Mar 2, 2022
1 parent f9b6404 commit 3498651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ func DeleteRepository(doer *user_model.User, uid, repoID int64) error {

// Remove attachment with no issue_id and release_id.
for i := range newAttachmentPaths {
admin_model.RemoveStorageWithNotice(db.DefaultContext, storage.Attachments, "Delete issue attachment", attachmentPaths[i])
admin_model.RemoveStorageWithNotice(db.DefaultContext, storage.Attachments, "Delete issue attachment", newAttachmentPaths[i])
}

if len(repo.Avatar) > 0 {
Expand Down

0 comments on commit 3498651

Please sign in to comment.