Skip to content

Commit

Permalink
Apply lint suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Mar 26, 2024
1 parent 2923072 commit 194d071
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions filebeat/tests/integration/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,8 @@ func TestStore(t *testing.T) {
t.Fatalf("could not create logs folder '%s': %s", logsFolder, err)
}

logFiles := []string{}
for i := 0; i < numLogFiles; i++ {
logFile := path.Join(logsFolder, fmt.Sprintf("log-%d.log", i))
logFiles = append(logFiles, logFile)
integration.GenerateLogFile(t, logFile, 10, false)
}
logsFolderGlob := filepath.Join(logsFolder, "*")
Expand Down
3 changes: 1 addition & 2 deletions libbeat/tests/integration/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
Expand Down Expand Up @@ -525,7 +524,7 @@ func (b *BeatProc) LoadMeta() (Meta, error) {
}
defer metaFile.Close()

metaBytes, err := ioutil.ReadAll(metaFile)
metaBytes, err := io.ReadAll(metaFile)
require.NoError(b.t, err, "error reading meta file")
err = json.Unmarshal(metaBytes, &m)
require.NoError(b.t, err, "error unmarshalling meta data")
Expand Down

0 comments on commit 194d071

Please sign in to comment.