Commit 015584e
committed
test(lifecycle): use atomic.Int32 instead of int32+atomic helpers
CI runs golangci-lint v2.11.4 which has the modernize check enabled
and rejected:
pkg/tools/lifecycle/supervisor_test.go:60:2: atomic: var calls int32
may be simplified using atomic.Int32 (modernize)
Switch scriptedConnector.calls to atomic.Int32 with .Add()/.Load()
methods. Pure cleanup; same behaviour.
Assisted-By: docker-agent1 parent 247e137 commit 015584e
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments