removed return from else
parent
01221e0566
commit
103d7a6836
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue