mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-07 05:42:42 +00:00
update golangci-lint and replace deprecated calls to io/ioutil
This commit is contained in:
committed by
Benj Fassbind
parent
71fd730598
commit
352f4e8772
@@ -1,7 +1,6 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
@@ -16,7 +15,7 @@ type CopyfileSuite struct {
|
||||
var _ = Suite(&CopyfileSuite{})
|
||||
|
||||
func (s *CopyfileSuite) SetUpSuite(c *C) {
|
||||
s.source, _ = ioutil.TempFile(c.MkDir(), "source-file")
|
||||
s.source, _ = os.CreateTemp(c.MkDir(), "source-file")
|
||||
s.dest = filepath.Join(filepath.Dir(s.source.Name()), "destination-file")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user