Skip to content

Commit

Permalink
Remove use of io/ioutil package
Browse files Browse the repository at this point in the history
  • Loading branch information
janos committed Jun 13, 2022
1 parent 7060158 commit 8d8e035
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions newreleases.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"encoding/json"
"errors"
"io"
"io/ioutil"
"net/http"
"net/url"
"strings"
Expand Down Expand Up @@ -194,7 +193,7 @@ func drain(r io.ReadCloser) {
_ = recover()
}()

_, _ = io.Copy(ioutil.Discard, r)
_, _ = io.Copy(io.Discard, r)
r.Close()
}()
}
Expand Down

0 comments on commit 8d8e035

Please sign in to comment.