Apply go fix -fmtappendf ./...

This commit is contained in:
Michael Eischer
2026-07-22 22:25:26 +02:00
parent 32e9869cc8
commit da4d8f5851
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ func New(id string, basedir string) (c *Cache, err error) {
}
if v < cacheVersion {
err = os.WriteFile(filepath.Join(cachedir, "version"), []byte(fmt.Sprintf("%d", cacheVersion)), fileMode)
err = os.WriteFile(filepath.Join(cachedir, "version"), fmt.Appendf(nil, "%d", cacheVersion), fileMode)
if err != nil {
return nil, errors.WithStack(err)
}