diff --git a/pkg/minikube/image/cache.go b/pkg/minikube/image/cache.go index 3a87114274..17889265f7 100644 --- a/pkg/minikube/image/cache.go +++ b/pkg/minikube/image/cache.go @@ -75,9 +75,8 @@ func SaveToDir(images []string, cacheDir string, overwrite bool) error { if err == errCacheImageDoesntExist { out.WarningT("The image you are trying to add {{.imageName}} doesn't exist!", out.V{"imageName": image}) return nil - } else { - return errors.Wrapf(err, "caching image %q", dst) } + return errors.Wrapf(err, "caching image %q", dst) } klog.Infof("save to tar file %s -> %s succeeded", image, dst) return nil