[#1671] Use fmt.Appendf where warranted

Fix gopls warnings:
```
cmd/frostfs-adm/internal/modules/morph/config/config.go:68:20-64: Replace []byte(fmt.Sprintf...) with fmt.Appendf
````

gopatch:
```
@@
var f expression
@@
-[]byte(fmt.Sprintf(f, ...))
+fmt.Appendf(nil, f, ...)
```

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2025-03-13 09:09:14 +03:00 committed by Evgenii Stratonikov
parent d66bffb191
commit 40536d8a06
6 changed files with 12 additions and 15 deletions

View file

@ -31,13 +31,10 @@ func PopulateWithObjects(
for range count {
obj := factory()
id := []byte(fmt.Sprintf(
"%c/%c/%c",
id := fmt.Appendf(nil, "%c/%c/%c",
digits[rand.Int()%len(digits)],
digits[rand.Int()%len(digits)],
digits[rand.Int()%len(digits)],
))
digits[rand.Int()%len(digits)])
prm := meta.PutPrm{}
prm.SetObject(obj)