mirror of
https://github.com/containers/podman.git
synced 2025-11-28 00:59:30 +08:00
run modernize -fix ./...
Using golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize + some manual cleanup in libpod/lock/shm/shm_lock_test.go as it generated an unused variable + restored one removed comment Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@@ -121,7 +121,7 @@ var _ = Describe("Podman pull", func() {
|
||||
|
||||
err = os.MkdirAll(filepath.Dir(configPath), os.ModePerm)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
storageConf := []byte(fmt.Sprintf("[storage]\nimagestore=\"%s\"", tmpDir))
|
||||
storageConf := fmt.Appendf(nil, "[storage]\nimagestore=\"%s\"", tmpDir)
|
||||
err = os.WriteFile(configPath, storageConf, os.ModePerm)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user