Skip to content

Commit b246c03

Browse files
committed
fix deprecation issue of io/ioutil
1 parent 630f310 commit b246c03

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

icon.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"encoding/json"
55
"fmt"
66
"io"
7-
"io/ioutil"
87
"net/http"
98
)
109

@@ -63,7 +62,7 @@ func getIcons() ([]Icon, error) {
6362
return nil, err
6463
}
6564
defer res.Body.Close()
66-
defer io.Copy(ioutil.Discard, res.Body)
65+
defer io.Copy(io.Discard, res.Body)
6766

6867
return decodeIcons(res.Body)
6968
}

0 commit comments

Comments
 (0)