mirror of
https://github.com/project-zot/zot.git
synced 2026-06-20 06:37:56 +08:00
Replaced deprecated io/ioutil functions (#768)
Signed-off-by: slab713 <109306207+slab713@users.noreply.github.com>
This commit is contained in:
@@ -8,7 +8,6 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"path"
|
||||
@@ -1414,7 +1413,7 @@ func makeConfigFile(content string) string {
|
||||
|
||||
configPath := path.Join(home + "/.zot")
|
||||
|
||||
if err := ioutil.WriteFile(configPath, []byte(content), 0o600); err != nil {
|
||||
if err := os.WriteFile(configPath, []byte(content), 0o600); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user