diff --git a/pruner/light/pruner.go b/pruner/light/pruner.go index 13464667b0..e6c8a6601b 100644 --- a/pruner/light/pruner.go +++ b/pruner/light/pruner.go @@ -38,13 +38,7 @@ func (p *Pruner) Prune(ctx context.Context, h *header.ExtendedHeader) error { } } - key := rootKey(dah) - err := p.ds.Delete(ctx, key) - if err != nil { - return err - } - - return nil + return p.ds.Delete(ctx, rootKey(dah)) } func rootKey(root *share.Root) datastore.Key {