2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-26 23:06:32 +00:00
This commit is contained in:
Alexander Neumann 2021-08-09 10:30:10 +02:00
parent 9fe5a87785
commit d90efd7704

View File

@ -1089,7 +1089,7 @@ type emptySaveBackend struct {
}
func (b *emptySaveBackend) Save(ctx context.Context, h restic.Handle, rd restic.RewindReader) error {
return b.Backend.Save(ctx, h, restic.NewByteReader(make([]byte, 0)))
return b.Backend.Save(ctx, h, restic.NewByteReader([]byte{}, nil))
}
func TestKeyProblems(t *testing.T) {