Skip to content

Commit

Permalink
apply nit
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan committed May 19, 2024
1 parent 15f516f commit 3c32f68
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pruner/light/pruner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3c32f68

Please sign in to comment.