diff --git a/copy/multiple.go b/copy/multiple.go index 009a067ce..5a6e38e41 100644 --- a/copy/multiple.go +++ b/copy/multiple.go @@ -197,9 +197,6 @@ func (c *copier) copyMultipleImages(ctx context.Context) (copiedManifest []byte, // If we can, set to the empty string. If we can't, set to the reason why. // Compare, and perhaps keep in sync with, the version in copySingleImage. cannotModifyManifestListReason := "" - if len(sigs) > 0 { - cannotModifyManifestListReason = "Would invalidate signatures" - } if destIsDigestedReference { cannotModifyManifestListReason = "Destination specifies a digest" } diff --git a/copy/single.go b/copy/single.go index 324785a8b..bcfb87be3 100644 --- a/copy/single.go +++ b/copy/single.go @@ -124,9 +124,6 @@ func (c *copier) copySingleImage(ctx context.Context, unparsedImage *image.Unpar // If we can, set to the empty string. If we can't, set to the reason why. // Compare, and perhaps keep in sync with, the version in copyMultipleImages. cannotModifyManifestReason := "" - if len(sigs) > 0 { - cannotModifyManifestReason = "Would invalidate signatures" - } if destIsDigestedReference { cannotModifyManifestReason = "Destination specifies a digest" }