Skip to content

Commit 4317806

Browse files
authored
backport fix of #18973 (#18974)
1 parent 578f19a commit 4317806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ func DeleteRepository(doer *user_model.User, uid, repoID int64) error {
977977

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

983983
if len(repo.Avatar) > 0 {

0 commit comments

Comments
 (0)