frostfs-sdk-go/object/erasurecode
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
..
constructor.go [#205] object: Initial EC implementation 2024-03-22 10:14:12 +00:00
constructor_test.go [#205] object: Initial EC implementation 2024-03-22 10:14:12 +00:00
reconstruct.go [#224] object: Introduce parent attributes in EC-header 2024-05-31 16:20:48 +03:00
reconstruct_test.go [#265] go.mod: Use range over int 2024-09-04 12:37:46 +03:00
split.go [#224] object: Introduce parent attributes in EC-header 2024-05-31 16:20:48 +03:00
split_test.go [#223] object: Introduce new fields for ECHeader 2024-05-17 15:16:28 +03:00
target.go [#205] object: Initial EC implementation 2024-03-22 10:14:12 +00:00
verify.go [#205] object: Initial EC implementation 2024-03-22 10:14:12 +00:00