digest: remove stuttering ParseDigest function
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
ad80b3d492
commit
d5cc235c48
3 changed files with 9 additions and 5 deletions
|
@ -75,7 +75,7 @@ func (dst *Set) Lookup(d string) (Digest, error) {
|
|||
alg Algorithm
|
||||
hex string
|
||||
)
|
||||
dgst, err := ParseDigest(d)
|
||||
dgst, err := Parse(d)
|
||||
if err == ErrDigestInvalidFormat {
|
||||
hex = d
|
||||
searchFunc = func(i int) bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue