Skip to content

Commit 71c14cb

Browse files
authored
[chore][processor/resourcedetectionprocessor] run make modernize (#44774)
<!--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 ec7906c commit 71c14cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

processor/resourcedetectionprocessor/resourcedetection_processor_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ func TestProcessorWithMultipleResources(t *testing.T) {
719719

720720
td := ptrace.NewTraces()
721721
// Add 3 resource spans
722-
for i := 0; i < 3; i++ {
722+
for range 3 {
723723
rs := td.ResourceSpans().AppendEmpty()
724724
rs.Resource().Attributes().PutStr("original", "value")
725725
}
@@ -741,7 +741,7 @@ func TestProcessorWithMultipleResources(t *testing.T) {
741741
defer func() { _ = mp.Shutdown(ctx) }()
742742

743743
md := pmetric.NewMetrics()
744-
for i := 0; i < 3; i++ {
744+
for range 3 {
745745
rm := md.ResourceMetrics().AppendEmpty()
746746
rm.Resource().Attributes().PutStr("original", "value")
747747
}

0 commit comments

Comments
 (0)