Replace ioutil.Discard with io.Discard (#20707)

Этот коммит содержится в:
Tim Scheuermann
2022-07-27 12:40:33 +03:00
коммит произвёл GitHub
родитель c00609ab8e
Коммит eba08cbb11
16 изменённых файлов: 18 добавлений и 30 удалений

Просмотреть файл

@@ -9,7 +9,6 @@ import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"regexp"
"strconv"
@@ -1610,7 +1609,7 @@ func getTeamIcon(c *Context, w http.ResponseWriter, r *http.Request) {
}
func setTeamIcon(c *Context, w http.ResponseWriter, r *http.Request) {
defer io.Copy(ioutil.Discard, r.Body)
defer io.Copy(io.Discard, r.Body)
c.RequireTeamId()
if c.Err != nil {