Closed saschagrunert closed 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.
expectedDigest.Validate()
Available()
Ref: https://github.com/opencontainers/go-digest/blob/429d0316a/digest.go#L111-L116
Follow-up on https://github.com/containers/image/pull/2312
Sounds good, thank you!
expectedDigest.Validate()
already calls theAvailable()
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