diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/dump.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/dump.go b/cmd/dump.go index 5be77d6348..fd89eb89f9 100644 --- a/cmd/dump.go +++ b/cmd/dump.go @@ -7,7 +7,6 @@ package cmd import ( "fmt" - "io/ioutil" "os" "path" "path/filepath" @@ -247,7 +246,7 @@ func runDump(ctx *cli.Context) error { fatal("Path does not exist: %s", tmpDir) } - dbDump, err := ioutil.TempFile(tmpDir, "gitea-db.sql") + dbDump, err := os.CreateTemp(tmpDir, "gitea-db.sql") if err != nil { fatal("Failed to create tmp file: %v", err) } |