diff options
Diffstat (limited to 'models/migrations/v96.go')
-rw-r--r-- | models/migrations/v96.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/migrations/v96.go b/models/migrations/v96.go index 9840248f61..5decb832cd 100644 --- a/models/migrations/v96.go +++ b/models/migrations/v96.go @@ -5,10 +5,10 @@ package migrations import ( - "os" "path" "code.gitea.io/gitea/modules/setting" + "code.gitea.io/gitea/modules/util" "xorm.io/xorm" ) @@ -58,7 +58,7 @@ func deleteOrphanedAttachments(x *xorm.Engine) error { } for _, attachment := range attachements { - if err := os.RemoveAll(AttachmentLocalPath(attachment.UUID)); err != nil { + if err := util.RemoveAll(AttachmentLocalPath(attachment.UUID)); err != nil { return err } } |