mirror of
https://github.com/distribution/distribution.git
synced 2025-08-31 06:34:11 +00:00
simplify RemoveLayerLink function
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user