Skip to content

Commit 42903f2

Browse files
authored
[chore][pdata/xpdata] run make modernize (#14159)
<!--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](#14153) linter in CI. There are no changes in the component behaviour. Signed-off-by: Paulo Dias <[email protected]>
1 parent 1ec56ed commit 42903f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdata/xpdata/entity/entity_map_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func TestEntityMap_PutEmpty_Override(t *testing.T) {
4848
func TestEntityMap_EnsureCapacity(t *testing.T) {
4949
em := NewEntityMap()
5050
em.EnsureCapacity(5)
51-
for i := 0; i < 5; i++ {
51+
for i := range 5 {
5252
em.PutEmpty(fmt.Sprintf("type%d", i))
5353
}
5454
assert.Equal(t, 5, em.Len())

0 commit comments

Comments
 (0)