removed return from else

pull/11601/head
Steven Powell 2021-06-07 16:31:26 -07:00
parent 01221e0566
commit 103d7a6836
1 changed files with 1 additions and 2 deletions

View File

@ -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