Skip to content

Commit dbab98c

Browse files
zeripathlafriks
authored andcommitted
Remove util.RemoveAll - should have been removed since go 1.7 (#6299)
1 parent e836b88 commit dbab98c

File tree

3 files changed

+2
-31
lines changed

3 files changed

+2
-31
lines changed

models/admin.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package models
66

77
import (
88
"fmt"
9+
"os"
910

1011
"code.gitea.io/gitea/modules/log"
1112
"code.gitea.io/gitea/modules/util"
@@ -60,7 +61,7 @@ func RemoveAllWithNotice(title, path string) {
6061
}
6162

6263
func removeAllWithNotice(e Engine, title, path string) {
63-
if err := util.RemoveAll(path); err != nil {
64+
if err := os.RemoveAll(path); err != nil {
6465
desc := fmt.Sprintf("%s [%s]: %v", title, path, err)
6566
log.Warn(desc)
6667
if err = createNotice(e, NoticeRepository, desc); err != nil {

modules/util/remove.go

Lines changed: 0 additions & 14 deletions
This file was deleted.

modules/util/remove_windows.go

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)