A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cloudflare/cfssl/commit/7025962aaa5975891ca0ef8d317f452d79c41922 below:

replace uses of deprecated io/ioutil · cloudflare/cfssl@7025962 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed Original file line number Diff line number Diff line change

@@ -3,7 +3,7 @@ package dbconf

3 3

import (

4 4

"encoding/json"

5 5

"errors"

6 -

"io/ioutil"

6 +

"os"

7 7 8 8

cferr "github.com/cloudflare/cfssl/errors"

9 9

"github.com/cloudflare/cfssl/log"

@@ -26,7 +26,7 @@ func LoadFile(path string) (cfg *DBConfig, err error) {

26 26

}

27 27 28 28

var body []byte

29 -

body, err = ioutil.ReadFile(path)

29 +

body, err = os.ReadFile(path)

30 30

if err != nil {

31 31

return nil, cferr.Wrap(cferr.PolicyError, cferr.InvalidPolicy, errors.New("could not read configuration file"))

32 32

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4