This commit is contained in:
Alexander Neumann 2021-08-09 10:30:10 +02:00
parent 9fe5a87785
commit d90efd7704
1 changed files with 1 additions and 1 deletions

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) {