update golangci-lint and replace deprecated calls to io/ioutil

This commit is contained in:
Markus Muellner authored and Benj Fassbind committed 2022-12-12 10:21:39 +01:00
1 parent 71fd730598
commit 352f4e8772
23 files changed
+30 -52

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ var _ = Suite(&CompressSuite{})
const testString = "Quick brown fox jumps over black dog and runs away... Really far away... who knows?"
func (s *CompressSuite) SetUpTest(c *C) {
s.tempfile, _ = ioutil.TempFile(c.MkDir(), "aptly-test")
s.tempfile, _ = os.CreateTemp(c.MkDir(), "aptly-test")
s.tempfile.WriteString(testString)
}