Remove duplicated text from comment
Signed-off-by: Bracken Dawson <abdawson@gmail.com>
This commit is contained in:
parent
27a96320b9
commit
a883f79cc0
1 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue