Skip to content

Commit 60f14a6

Browse files
authored
[chore][exporter/datasetexporter] run make modernize (#44226)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Run the `make modernize` tool. https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize This is part of the process to enable the [modernize](#44199) linter in CI. There are no changes in the component behaviour. Signed-off-by: Paulo Dias <[email protected]>
1 parent efb6756 commit 60f14a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exporter/datasetexporter/logs_exporter_integration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ func TestConsumeLogsManyLogsShouldSucceed(t *testing.T) {
102102
err = logs.Start(t.Context(), componenttest.NewNopHost())
103103
assert.NoError(t, err)
104104

105-
for bI := 0; bI < maxBatchCount; bI++ {
105+
for bI := range maxBatchCount {
106106
batch := plog.NewLogs()
107107
rL := batch.ResourceLogs().AppendEmpty()
108108
sL := rL.ScopeLogs().AppendEmpty()
109-
for lI := 0; lI < logsPerBatch; lI++ {
109+
for lI := range logsPerBatch {
110110
key := fmt.Sprintf("%04d-%06d", bI, lI)
111111
log := sL.LogRecords().AppendEmpty()
112112
log.SetTimestamp(pcommon.NewTimestampFromTime(time.Now()))

0 commit comments

Comments
 (0)