frostfs-node/pkg/morph
Evgenii Stratonikov c98357606b
[#1606] Use slices.Clone()/bytes.Clone() where possible
gopatch:
```
@@
var from, to expression
@@
+import "bytes"
-to := make([]byte, len(from))
-copy(to, from)
+to := bytes.Clone(from)

@@
var from, to expression
@@
+import "bytes"
-to = make([]byte, len(from))
-copy(to, from)
+to = bytes.Clone(from)

@@
var from, to, typ expression
@@
+import "slices"
-to := make([]typ, len(from))
-copy(to, from)
+to := slices.Clone(from)

@@
var from, to, typ expression
@@
+import "slices"
-to = make([]typ, len(from))
-copy(to, from)
+to = slices.Clone(from)
```

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-17 14:50:14 +03:00
..
client [#1606] Use slices.Clone()/bytes.Clone() where possible 2025-01-17 14:50:14 +03:00
event [#1598] golangci: Enable unparam linter 2025-01-14 09:06:47 +03:00
metrics [#424] morph: Fix cache metrics 2023-06-14 18:26:19 +03:00
subscriber [#1437] blobovnicza: Fix contextcheck linter 2024-11-13 10:36:08 +03:00
timer [#1507] timer/test: Use const for constants 2024-11-20 08:36:25 +00:00