chore: replace deprecated ioutil.ReadAll

This commit is contained in:
2022-11-10 10:54:45 +01:00
parent 51f0aaf0ca
commit abfeb751b2
+2 -2
View File
@@ -3,7 +3,7 @@ package client
import (
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
"reflect"
@@ -58,7 +58,7 @@ func (h *PrivilegeHandler) Fetch() error {
return err
}
buff, err := ioutil.ReadAll(resp.Body)
buff, err := io.ReadAll(resp.Body)
if err != nil {
return err
}