summaryrefslogtreecommitdiffstats
path: root/models/admin.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-03-10 21:56:36 +0000
committerLauris BH <lauris@nix.lv>2019-03-10 23:56:36 +0200
commitdbab98c8e088c04e0501fb5a2c2acd399b4f9721 (patch)
tree35bc0c5567d4998bbbfe326d011cec56c34d65be /models/admin.go
parente836b8869bfb89fe7d3d1f898c35f77ffb6dfaa6 (diff)
downloadgitea-dbab98c8e088c04e0501fb5a2c2acd399b4f9721.tar.gz
gitea-dbab98c8e088c04e0501fb5a2c2acd399b4f9721.zip
Remove util.RemoveAll - should have been removed since go 1.7 (#6299)
Diffstat (limited to 'models/admin.go')
-rw-r--r--models/admin.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/admin.go b/models/admin.go
index 06b7c14c62..275fff2773 100644
--- a/models/admin.go
+++ b/models/admin.go
@@ -6,6 +6,7 @@ package models
import (
"fmt"
+ "os"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/util"
@@ -60,7 +61,7 @@ func RemoveAllWithNotice(title, path string) {
}
func removeAllWithNotice(e Engine, title, path string) {
- if err := util.RemoveAll(path); err != nil {
+ if err := os.RemoveAll(path); err != nil {
desc := fmt.Sprintf("%s [%s]: %v", title, path, err)
log.Warn(desc)
if err = createNotice(e, NoticeRepository, desc); err != nil {