mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 02:24:59 +00:00
refactor: Remove remaining uses of depreciated package io/ioutil
(#837)
This commit is contained in:
parent
6151ea1c4d
commit
8e8d474ae8
3 changed files with 5 additions and 8 deletions
|
@ -1,7 +1,6 @@
|
|||
package gallery_test
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
|
@ -50,7 +49,7 @@ var _ = Describe("Model test", func() {
|
|||
}}
|
||||
out, err := yaml.Marshal(gallery)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
err = ioutil.WriteFile(filepath.Join(tempdir, "gallery_simple.yaml"), out, 0644)
|
||||
err = os.WriteFile(filepath.Join(tempdir, "gallery_simple.yaml"), out, 0644)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
||||
galleries := []Gallery{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue