Skip to content

Commit e6fdd7f

Browse files
committed
apply nit
1 parent ffc73af commit e6fdd7f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pruner/light/pruner.go

+1-7
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,7 @@ func (p *Pruner) Prune(ctx context.Context, h *header.ExtendedHeader) error {
3838
}
3939
}
4040

41-
key := rootKey(dah)
42-
err := p.ds.Delete(ctx, key)
43-
if err != nil {
44-
return err
45-
}
46-
47-
return nil
41+
return p.ds.Delete(ctx, rootKey(dah))
4842
}
4943

5044
func rootKey(root *share.Root) datastore.Key {

0 commit comments

Comments
 (0)