Remove unnecessary type conversions.

This commit is contained in:
Martin Smith
2025-02-28 19:38:33 +00:00
parent 2099ec1cd6
commit 092899df8b
17 changed files with 30 additions and 30 deletions

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
}