Skip to content

Commit

Permalink
drop ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Sep 9, 2022
1 parent 31b1e13 commit 2863236
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions getparty.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"net/http/cookiejar"
Expand Down Expand Up @@ -180,7 +179,7 @@ func (cmd *Cmd) Run(args []string, version, commit string) (err error) {

setupLogger := func(out io.Writer, prefix string, discard bool) *log.Logger {
if discard {
out = ioutil.Discard
out = io.Discard
}
return log.New(out, prefix, log.LstdFlags)
}
Expand Down Expand Up @@ -504,7 +503,7 @@ func (cmd Cmd) getTransport(pooled bool) (transport *http.Transport, err error)
if cmd.options.InsecureSkipVerify {
transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
} else if cmd.options.CertsFileName != "" {
caCerts, err := ioutil.ReadFile(cmd.options.CertsFileName)
caCerts, err := os.ReadFile(cmd.options.CertsFileName)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 2863236

Please sign in to comment.