refactor: remove ioutil module usage

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
2023-03-11 12:27:30 +01:00
parent 291c4f6361
commit 82d04d63b6
5 changed files with 11 additions and 14 deletions

View File

@ -6,7 +6,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"strings"
"time"
@ -267,7 +266,7 @@ func run(opts ...service.Option) {
log.Fatal(err)
}
defer resp.Body.Close()
b, err := ioutil.ReadAll(resp.Body)
b, err := io.ReadAll(resp.Body)
if err != nil {
log.Fatal(err)
}