frostfs-node/pkg/local_object_storage/blobstor/fstree
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
..
control.go [#1121] node: Change mode of shard components 2024-06-05 05:55:24 +00:00
counter.go [#970] fstree: Move file locking to the generic writer 2024-02-09 16:12:11 +00:00
fstree.go [#1130] fstree: Remove useless Stat() call 2024-05-14 16:05:45 +03:00
fstree_test.go [#1317] go.mod: Use range over int 2024-09-03 13:00:54 +03:00
fstree_write_generic.go [#948] Fix gofumpt issue 2024-02-13 09:40:46 +03:00
fstree_write_linux.go [#970] fstree: Add build tag to enable generic version on linux 2024-02-09 16:12:11 +00:00
fstree_write_specific.go [#970] fstree: Add build tag to enable generic version on linux 2024-02-09 16:12:11 +00:00
generic_test.go [#559] Remove manual path handling in fstree tests 2023-08-03 10:03:41 +03:00
metrics.go [#1121] node: Change mode of shard components 2024-06-05 05:55:24 +00:00
option.go [#970] fstree: Move file locking to the generic writer 2024-02-09 16:12:11 +00:00