Skip to content

Commit 7025962

Browse files
committed
certdb: replace uses of deprecated io/ioutil
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent c9e5b44 commit 7025962

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

certdb/dbconf/db_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package dbconf
33
import (
44
"encoding/json"
55
"errors"
6-
"io/ioutil"
6+
"os"
77

88
cferr "github.com/cloudflare/cfssl/errors"
99
"github.com/cloudflare/cfssl/log"
@@ -26,7 +26,7 @@ func LoadFile(path string) (cfg *DBConfig, err error) {
2626
}
2727

2828
var body []byte
29-
body, err = ioutil.ReadFile(path)
29+
body, err = os.ReadFile(path)
3030
if err != nil {
3131
return nil, cferr.Wrap(cferr.PolicyError, cferr.InvalidPolicy, errors.New("could not read configuration file"))
3232
}

0 commit comments

Comments
 (0)