multi: repleace ioutil.ReadFile

This commit is contained in:
erik authored and ErikEk committed 2024-04-25 11:22:43 +02:00
1 parent 619c8f4eb8
commit ab83343c87
23 files changed
+55 -62

No files matched your search

+1 -1
View File
@@ -297,7 +297,7 @@ func (hn *HarnessNode) ReadMacaroon(macPath string, timeout time.Duration) (
// using it.
var mac *macaroon.Macaroon
err := wait.NoError(func() error {
macBytes, err := ioutil.ReadFile(macPath)
macBytes, err := os.ReadFile(macPath)
if err != nil {
return fmt.Errorf("error reading macaroon file: %w",
err)