summaryrefslogtreecommitdiff
path: root/data/datasource_http.go
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2022-08-04 19:52:09 -0400
committerDave Henderson <dhenderson@gmail.com>2022-08-04 19:54:51 -0400
commitf67ce5ac8d8bc3f47563dd6512946d8947cf412a (patch)
tree4697b947e9d6eeec1479c29cdd661ced2dd5effb /data/datasource_http.go
parentf13bcfdd78e0e502947addb3b3f0556bbbf9edf5 (diff)
Fix lint errors
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'data/datasource_http.go')
-rw-r--r--data/datasource_http.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/datasource_http.go b/data/datasource_http.go
index 03e1ac4c..1061a3a1 100644
--- a/data/datasource_http.go
+++ b/data/datasource_http.go
@@ -2,7 +2,7 @@ package data
import (
"context"
- "io/ioutil"
+ "io"
"mime"
"net/http"
"net/url"
@@ -39,7 +39,7 @@ func readHTTP(ctx context.Context, source *Source, args ...string) ([]byte, erro
if err != nil {
return nil, err
}
- body, err := ioutil.ReadAll(res.Body)
+ body, err := io.ReadAll(res.Body)
if err != nil {
return nil, err
}