Remove duplicated text from comment

Signed-off-by: Bracken Dawson <abdawson@gmail.com>
This commit is contained in:
Bracken Dawson 2023-05-23 12:00:19 +01:00
parent 27a96320b9
commit a883f79cc0
No known key found for this signature in database
GPG key ID: 7C6C7FA182101826

View file

@ -114,10 +114,10 @@ func (m *DeserializedManifest) UnmarshalJSON(b []byte) error {
return fmt.Errorf("if config.mediaType is '%s' then artifactType must be set", v1.MediaTypeScratch) return fmt.Errorf("if config.mediaType is '%s' then artifactType must be set", v1.MediaTypeScratch)
} }
// The subject if specified must be a must be a manifest. This is validated // The subject if specified must be a manifest. This is validated here
// here rather than in the storage manifest Put handler because the subject // rather than in the storage manifest Put handler because the subject does
// does not have to exist, so there is nothing to validate in the manifest // not have to exist, so there is nothing to validate in the manifest store.
// store. If a non-compliant client provided the digest of a blob then this // If a non-compliant client provided the digest of a blob then this
// registry would still indicate that the referred manifest does not exist. // registry would still indicate that the referred manifest does not exist.
if mfst.Subject != nil { if mfst.Subject != nil {
if !distribution.ManifestMediaTypeSupported(mfst.Subject.MediaType) { if !distribution.ManifestMediaTypeSupported(mfst.Subject.MediaType) {