A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/cloudflare/cfssl/commit/77a52e775f073de941b01388a9e7362da5ef1218 below:

replace uses of deprecated io/ioutil · cloudflare/cfssl@77a52e7 · 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

@@ -8,7 +8,7 @@ import (

8 8

"encoding/json"

9 9

"errors"

10 10

"fmt"

11 -

"io/ioutil"

11 +

"os"

12 12

"regexp"

13 13

"strconv"

14 14

"strings"

@@ -699,7 +699,7 @@ func LoadFile(path string) (*Config, error) {

699 699

return nil, cferr.Wrap(cferr.PolicyError, cferr.InvalidPolicy, errors.New("invalid path"))

700 700

}

701 701 702 -

body, err := ioutil.ReadFile(path)

702 +

body, err := os.ReadFile(path)

703 703

if err != nil {

704 704

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

705 705

}

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