summaryrefslogtreecommitdiffstats
path: root/cmd/doctor.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/doctor.go')
-rw-r--r--cmd/doctor.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/doctor.go b/cmd/doctor.go
index 48fd3158a4..20c1904afa 100644
--- a/cmd/doctor.go
+++ b/cmd/doctor.go
@@ -24,6 +24,7 @@ import (
"code.gitea.io/gitea/modules/options"
"code.gitea.io/gitea/modules/repository"
"code.gitea.io/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/util"
"xorm.io/builder"
"github.com/urfave/cli"
@@ -312,7 +313,7 @@ func runDoctorWritableDir(path string) error {
if err != nil {
return err
}
- if err := os.Remove(tmpFile.Name()); err != nil {
+ if err := util.Remove(tmpFile.Name()); err != nil {
fmt.Printf("Warning: can't remove temporary file: '%s'\n", tmpFile.Name())
}
tmpFile.Close()