1
0
mirror of https://github.com/nikoksr/notify.git synced 2024-11-24 08:22:18 +02:00

chore(lint): replace ioutil.ReadAll with io.ReadAll

This commit is contained in:
Niko Köser 2022-08-04 15:39:12 +02:00
parent d6439289a3
commit 853dbd58d3
No known key found for this signature in database
GPG Key ID: F3F28C118DAA6375

View File

@ -5,7 +5,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
"strings"
"time"
@ -131,7 +131,7 @@ func (s *Service) send(ctx context.Context, serverURL, subject, content string)
defer func() { _ = resp.Body.Close() }()
// Read response and verify success
result, err := ioutil.ReadAll(resp.Body)
result, err := io.ReadAll(resp.Body)
if err != nil {
return errors.Wrap(err, "read response")
}