summaryrefslogtreecommitdiffstats
path: root/models/migrations/v115.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v115.go')
-rw-r--r--models/migrations/v115.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/models/migrations/v115.go b/models/migrations/v115.go
index 9b5c70a7ac..fe3b086119 100644
--- a/models/migrations/v115.go
+++ b/models/migrations/v115.go
@@ -15,6 +15,7 @@ import (
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/util"
"xorm.io/xorm"
)
@@ -110,8 +111,8 @@ func renameExistingUserAvatarName(x *xorm.Engine) error {
log.Info("Deleting %d old avatars ...", deleteCount)
i := 0
for file := range deleteList {
- if err := os.Remove(file); err != nil {
- log.Warn("os.Remove: %v", err)
+ if err := util.Remove(file); err != nil {
+ log.Warn("util.Remove: %v", err)
}
i++
select {