frostfs-sdk-go/pool/tree
Ekaterina Lebedeva 46ee543899
All checks were successful
DCO / DCO (pull_request) Successful in 47s
Tests and linters / Tests (1.22) (pull_request) Successful in 1m7s
Tests and linters / Tests (1.23) (pull_request) Successful in 1m7s
Tests and linters / Lint (pull_request) Successful in 1m42s
[#265] 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-04 12:37:46 +03:00
..
service [#239] pool/tree: Update tree service client 2024-07-17 14:32:04 +03:00
client.go [#190] sdk-go: Gofumpt fixes 2023-11-22 19:21:20 +03:00
pool.go [#265] go.mod: Use range over int 2024-09-04 12:37:46 +03:00
pool_signature.go [#239] pool/tree: Update tree service client 2024-07-17 14:32:04 +03:00
pool_test.go [#226] pool/tree: Fix handling access denied error 2024-05-30 14:59:35 +03:00
statistic.go [#244] pool/tree: Collect request duration statistic 2024-08-02 13:01:14 +03:00