mirror of
https://github.com/restic/restic.git
synced 2026-11-21 04:52:42 +00:00
Remove unnecessary type conversions.
This commit is contained in:
1 parent
2099ec1cd6
commit
092899df8b
17 files changed
+30
-30
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user