prune partial downloads (#4272)

This commit is contained in:
Jeffrey Morgan
2024-05-09 16:35:20 -07:00
committed by GitHub
parent 0e1ba65855
commit 302d7fdbf3
2 changed files with 21 additions and 17 deletions

View File

@@ -154,9 +154,6 @@ func GetBlobsPath(digest string) (string, error) {
// only accept actual sha256 digests
pattern := "^sha256[:-][0-9a-fA-F]{64}$"
re := regexp.MustCompile(pattern)
if err != nil {
return "", err
}
if digest != "" && !re.MatchString(digest) {
return "", ErrInvalidDigestFormat