Skip to content

Commit eccf7b7

Browse files
Use io.ReadAll
1 parent c3a1135 commit eccf7b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v2/awsutil/awsutil.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package awsutil
33

44
import (
55
"errors"
6-
"io/ioutil"
6+
"io"
77
"net"
88
"net/http"
99
"os/exec"
@@ -19,7 +19,7 @@ func amazonEC2PrivateIPv4() (net.IP, error) {
1919
}
2020
defer res.Body.Close()
2121

22-
body, err := ioutil.ReadAll(res.Body)
22+
body, err := io.ReadAll(res.Body)
2323
if err != nil {
2424
return nil, err
2525
}

0 commit comments

Comments
 (0)