simplify RemoveLayerLink function

This commit is contained in:
Wayne Warren
2020-09-02 21:54:36 +00:00
parent ec64b15a77
commit 28166f7383

View File

@@ -103,12 +103,7 @@ func (v Vacuum) RemoveLayerLink(manifestName string, dgst digest.Digest) error {
}
}
err = v.driver.Delete(v.ctx, layerLinkPath)
if err != nil {
return err
}
return nil
return v.driver.Delete(v.ctx, layerLinkPath)
}
// RemoveRepository removes a repository directory from the