mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-15 10:07:24 +00:00
replace io/ioutil
fixes golangci-lint errors
This commit is contained in:
1 parent
c33141d49b
commit
1a3cfea348
3 files changed
+3
-6
No files matched your search
@@ -2,7 +2,6 @@ package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"strings"
|
||||
"sync"
|
||||
@@ -167,7 +166,7 @@ func aptlyMirrorUpdate(cmd *commander.Command, args []string) error {
|
||||
task.TempDownPath, e = pp.GenerateTempPath(task.File.Filename)
|
||||
} else {
|
||||
var file *os.File
|
||||
file, e = ioutil.TempFile("", task.File.Filename)
|
||||
file, e = os.CreateTemp("", task.File.Filename)
|
||||
if e == nil {
|
||||
task.TempDownPath = file.Name()
|
||||
file.Close()
|
||||
|
||||
Reference in new issue
Block a user