daemon/containerd/image_snapshot.go
Method ImageService.PrepareSnapshot
has 9 return statements (exceeds 4 allowed). Open
Open
func (i *ImageService) PrepareSnapshot(ctx context.Context, id string, parentImage string, platform *ocispec.Platform, setupInit func(string) error) error {
var parentSnapshot string
if parentImage != "" {
img, err := i.resolveImage(ctx, parentImage)
if err != nil {
Method ImageService.PrepareSnapshot
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (i *ImageService) PrepareSnapshot(ctx context.Context, id string, parentImage string, platform *ocispec.Platform, setupInit func(string) error) error {