Fix linter errors

This commit is contained in:
Daniel 2022-09-29 14:31:00 +02:00
parent b552e3f7a5
commit fd83534698
9 changed files with 13 additions and 18 deletions

View file

@ -5,7 +5,7 @@ import (
"crypto/tls"
"encoding/base64"
"fmt"
"io/ioutil"
"io"
"net/http"
"net/url"
"time"
@ -95,7 +95,7 @@ func (hr *HTTPSResolver) Query(ctx context.Context, q *Query) (*RRCache, error)
}()
// Try to read the result
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
return nil, err
}