Skip to content

Commit 6d9fd31

Browse files
committed
fixup! copy: remove redundant comment about validation
The comment is redundant as the code and error message are self-explanatory. Signed-off-by: Alex Guidi <aguidi@redhat.com>
1 parent 5b1910c commit 6d9fd31

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

image/copy/multiple.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ func prepareInstanceOps(list internalManifest.List, instanceDigests []digest.Dig
186186
slices.Reverse(deleteOps)
187187
copyLen := len(res) // Count copy/clone operations before appending deletes
188188

189-
// Validate that we're not deleting all entries without copying any
190189
if copyLen == 0 && len(deleteOps) == len(instanceDigests) {
191190
return nil, -1, fmt.Errorf("requested operation filtered out all platforms and would create an empty image")
192191
}

0 commit comments

Comments
 (0)