mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-22 09:29:38 +00:00
*: fix copyloopvar warnings
Go 1.22+ allows to drop these: The copy of the 'for' variable "i" can be deleted (Go 1.22+) (copyloopvar) Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
74cf5cbeae
commit
565f8cfb7a
2 changed files with 0 additions and 2 deletions
|
@ -218,7 +218,6 @@ func testGetBlocksByIndex(t *testing.T, cmd CommandType) {
|
|||
expectsCmd := make([]CommandType, 10)
|
||||
expectedHeight := make([][]uint32, 10)
|
||||
for i := range ps {
|
||||
i := i
|
||||
ps[i] = newLocalPeer(t, s)
|
||||
ps[i].messageHandler = func(t *testing.T, msg *Message) {
|
||||
require.Equal(t, expectsCmd[i], msg.Command)
|
||||
|
|
|
@ -594,7 +594,6 @@ func TestJMPs(t *testing.T) {
|
|||
}
|
||||
|
||||
for i, tc := range testCases {
|
||||
i := i
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
for op := opcode.JMP; op < opcode.JMPLEL; op++ {
|
||||
resOp := op
|
||||
|
|
Loading…
Reference in a new issue