Remove unnecessary type conversions.

This commit is contained in:
Martin Smith committed 2025-03-22 18:20:30 +00:00
1 parent 2099ec1cd6
commit 092899df8b
17 files changed
+30 -30

No files matched your search

+1 -1
View File
@@ -696,7 +696,7 @@ var testStrings = []struct {
func store(t testing.TB, b backend.Backend, tpe backend.FileType, data []byte) backend.Handle {
id := restic.Hash(data)
h := backend.Handle{Name: id.String(), Type: tpe}
err := b.Save(context.TODO(), h, backend.NewByteReader([]byte(data), b.Hasher()))
err := b.Save(context.TODO(), h, backend.NewByteReader(data, b.Hasher()))
test.OK(t, err)
return h
}