daemon/containerd/image_tag.go
Method ImageService.TagImage
has 8 return statements (exceeds 4 allowed). Open
Open
func (i *ImageService) TagImage(ctx context.Context, imageID image.ID, newTag reference.Named) error {
targetImage, err := i.resolveImage(ctx, imageID.String())
if err != nil {
return errors.Wrapf(err, "failed to resolve image id %q to a descriptor", imageID.String())
}