multi: replace ioutil.ReadDir

This commit is contained in:
erik authored and ErikEk committed 2024-04-25 11:24:17 +02:00
1 parent c7f81d3142
commit caf2419ff6
3 files changed
+3 -5

No files matched your search

+1 -2
View File
@@ -4,7 +4,6 @@ import (
"bytes"
"context"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
@@ -121,7 +120,7 @@ func (h *HarnessMiner) saveLogs() {
// After shutting down the miner, we'll make a copy of the log files
// before deleting the temporary log dir.
path := fmt.Sprintf("%s/%s", h.logPath, harnessNetParams.Name)
files, err := ioutil.ReadDir(path)
files, err := os.ReadDir(path)
require.NoError(h, err, "unable to read log directory")
for _, file := range files {