mirror of
https://github.com/distribution/distribution.git
synced 2025-09-04 00:16:10 +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)
|
return v.driver.Delete(v.ctx, layerLinkPath)
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// RemoveRepository removes a repository directory from the
|
// RemoveRepository removes a repository directory from the
|
||||||
|
Reference in New Issue
Block a user