chore: replace deprecated ioutil.ReadAll #25

Merged
argoyle merged 1 commits from deprecation into main 2022-11-10 09:56:45 +00:00
Showing only changes of commit abfeb751b2 - Show all commits
+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
}