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:
parent
d6439289a3
commit
853dbd58d3
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user