From 8d8e035064397ec61e1e39f92db53fd0385b3d5e Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Mon, 13 Jun 2022 13:14:10 +0200 Subject: [PATCH] Remove use of io/ioutil package --- newreleases.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/newreleases.go b/newreleases.go index c50bd29..949a9b6 100644 --- a/newreleases.go +++ b/newreleases.go @@ -11,7 +11,6 @@ import ( "encoding/json" "errors" "io" - "io/ioutil" "net/http" "net/url" "strings" @@ -194,7 +193,7 @@ func drain(r io.ReadCloser) { _ = recover() }() - _, _ = io.Copy(ioutil.Discard, r) + _, _ = io.Copy(io.Discard, r) r.Close() }() }