aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--internal/feed/mail.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/feed/mail.go b/internal/feed/mail.go
index 6ca7192..799e36e 100644
--- a/internal/feed/mail.go
+++ b/internal/feed/mail.go
@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/base64"
"fmt"
- "io/ioutil"
+ "io"
"mime"
"net/url"
"path"
@@ -224,7 +224,7 @@ func getImage(src string, timeout int, disableTLS bool) ([]byte, string, error)
}
defer cancel()
- img, err := ioutil.ReadAll(resp.Body)
+ img, err := io.ReadAll(resp.Body)
if err != nil {
return nil, "", fmt.Errorf("reading from '%s': %w", src, err)
}