multi: repleace ioutil.ReadAll

This commit is contained in:
erik authored and ErikEk committed 2024-04-25 11:21:18 +02:00
1 parent 8ce3622792
commit 619c8f4eb8
8 files changed
+12 -16

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ import (
"encoding/hex"
"errors"
"fmt"
"io/ioutil"
"io"
"os"
"runtime"
"strconv"
@@ -987,7 +987,7 @@ func sendToRoute(ctx *cli.Context) error {
// The user is signalling that we should read stdin in order to parse
// the set of target routes.
case args.Present() && args.First() == "-":
b, err := ioutil.ReadAll(os.Stdin)
b, err := io.ReadAll(os.Stdin)
if err != nil {
return err
}