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

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

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

@@ -7,7 +7,6 @@ import (
"bytes"
"encoding/json"
"io"
"io/ioutil"
"net/http"
"runtime"
"strings"
@@ -469,7 +468,7 @@ func (a *App) SendAckToPushProxy(ack *model.PushNotificationAck) error {
}
defer resp.Body.Close()
// Reading the body to completion.
_, err = io.Copy(ioutil.Discard, resp.Body)
_, err = io.Copy(io.Discard, resp.Body)
if err != nil {
return err
}