frostfs-node/pkg/innerring/processors/governance
Ekaterina Lebedeva a685fcdc96 [#1317] go.mod: Use range over int
Since Go 1.22 a "for" statement with a "range" clause is able
to iterate through integer values from zero to an upper limit.

gopatch script:
@@
var i, e expression
@@
-for i := 0; i <= e - 1; i++ {
+for i := range e {
    ...
}

@@
var i, e expression
@@
-for i := 0; i <= e; i++ {
+for i := range e + 1 {
    ...
}

@@
var i, e expression
@@
-for i := 0; i < e; i++ {
+for i := range e {
    ...
}

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
2024-09-03 13:00:54 +03:00
..
events.go [#971] *: Add notification TX hash to neofs/netmap morph client calls 2021-11-19 09:58:03 +03:00
handlers.go [#374] Add inner-ring event metrics 2023-05-31 10:11:48 +00:00
handlers_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
list.go [#1910] .golangci.yml: Add godot linker 2022-10-18 15:08:26 +03:00
list_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
process_update.go [#374] Add inner-ring event metrics 2023-05-31 10:11:48 +00:00
processor.go [#374] Add inner-ring event metrics 2023-05-31 10:11:48 +00:00