Skip to content

Commit 7ffe7c5

Browse files
authored
[chore]: fix increment-decrement issues from revive (#4782)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 parent 657b8d7 commit 7ffe7c5

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.golangci.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ linters:
102102
disabled: true # FIXME
103103
- name: identical-switch-branches
104104
disabled: true # FIXME
105-
- name: increment-decrement
106-
disabled: true # FIXME
107105
- name: import-alias-naming
108106
disabled: true # FIXME
109107
- name: import-shadowing

cmd/otel-allocator/internal/target/discovery_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ func TestProcessTargetGroups_StableLabelIterationOrder(t *testing.T) {
506506
expected := string(rune('a' + i))
507507
assert.Equal(t, expected, l.Name, "unexpected label key at index %d", i)
508508
assert.Equal(t, expected, l.Value, "unexpected label value at index %d", i)
509-
i += 1
509+
i++
510510
})
511511
}
512512

0 commit comments

Comments
 (0)