chore: use range loop (#18176)

This commit is contained in:
andig 2025-01-11 16:47:25 +01:00 • committed by GitHub
parent 4cce98caf5
commit f469be6f73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 19 additions and 19 deletions

View file

@ -37,7 +37,7 @@ func TestConcurrentRead(t *testing.T) {
conn, err := modbus.NewConnection(l.Addr().String(), "", "", 0, modbus.Tcp, uint8(id))
require.NoError(t, err)
for i := 0; i < 50; i++ {
for range 50 {
addr := uint16(rand.Int31n(200) + 1)
qty := uint16(rand.Int31n(32) + 1)