chore: modernize go sources (#24896)
This commit is contained in:
parent
3421e8df81
commit
352012d24b
324 changed files with 590 additions and 583 deletions
|
|
@ -82,7 +82,7 @@ func (h *handler) bytesToBoolResult(op string, qty uint16, b []byte, err error)
|
|||
|
||||
LOOP:
|
||||
for _, bb := range b {
|
||||
for bit := 0; bit < 8; bit++ {
|
||||
for bit := range 8 {
|
||||
if len(res) >= int(qty) {
|
||||
break LOOP
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ func TestConcurrentRead(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
|
||||
if err == nil {
|
||||
for u := uint16(0); u < qty; u++ {
|
||||
for u := range qty {
|
||||
assert.Equal(t, addr^uint16(id)^u, binary.BigEndian.Uint16(b[2*u:]))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue