Skip to content

Commit 7b8d679

Browse files
committed
[release/1.6] integration: remove use of deprecated io/ioutil
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent a91dd67 commit 7b8d679

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

integration/failpoint/cmd/cni-bridge-fp/main_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"context"
2121
"encoding/json"
2222
"fmt"
23-
"io/ioutil"
23+
"io"
2424
"os"
2525
"path/filepath"
2626
"syscall"
@@ -168,7 +168,7 @@ func (c *failpointControl) updateTx(updateFn func(conf *failpointConf) error) er
168168
}
169169
defer unflock(f.Fd())
170170

171-
data, err := ioutil.ReadAll(f)
171+
data, err := io.ReadAll(f)
172172
if err != nil {
173173
return fmt.Errorf("failed to read failpoint setting %s: %w", c.confPath, err)
174174
}

0 commit comments

Comments
 (0)