containers / image

Work with containers' images
Apache License 2.0
845 stars 366 forks source link

Remove additional check if digester is available #2316

Closed saschagrunert closed 4 months ago

saschagrunert commented 4 months ago

expectedDigest.Validate() already calls the Available() method and checks if the digest is possible or not. Therefore we can remove the additional/impossible double check for that.

Ref: https://github.com/opencontainers/go-digest/blob/429d0316a/digest.go#L111-L116

Follow-up on https://github.com/containers/image/pull/2312

saschagrunert commented 4 months ago

Sounds good, thank you!