remove deprecated use of ioutil (#5205)

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2022-12-08 14:44:53 +01:00
committed by GitHub
parent 46cb910637
commit 53d15d329e
24 changed files with 57 additions and 67 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"github.com/oklog/run"
"github.com/owncloud/ocis/v2/ocis-pkg/config/configlog"
@@ -36,7 +36,7 @@ func Server(cfg *config.Config) *cli.Command {
// actually read the contents of the config file and override defaults
if cfg.File != "" {
contents, err := ioutil.ReadFile(cfg.File)
contents, err := os.ReadFile(cfg.File)
if err != nil {
logger.Err(err).Msg("error opening config file")
return err