frostfs-sdk-go/object/transformer
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
..
channel.go [#64] transformer: Simplify interface 2023-07-11 07:33:12 +00:00
channel_test.go [#190] sdk-go: Gofumpt fixes 2023-11-22 19:21:20 +03:00
hasher.go [#19] transformer: Fix dependencies 2023-03-16 09:51:03 +03:00
size_hint_test.go [#190] sdk-go: Pass user.ID by value 2023-11-22 19:21:20 +03:00
transformer.go [#237] pool: Return creation epoch from object put 2024-07-22 06:15:23 +00:00
transformer_test.go [#265] go.mod: Use range over int 2024-09-04 12:37:46 +03:00
types.go [#237] pool: Return creation epoch from object put 2024-07-22 06:15:23 +00:00