Resolve Review comments

This commit is contained in:
divyansh42 2021-01-19 01:59:04 +05:30
parent f2622a46a5
commit 260181aca3
5 changed files with 7 additions and 7 deletions

View file

@ -193,8 +193,10 @@ async function isPodmanLocalImageLatest(
// remove the pulled image from the Podman image storage
async function removeDockerImage(): Promise<void> {
core.info(`Removing ${imageToPush} from the Podman image storage`);
await execute(await getPodmanPath(), [ "rmi", imageToPush ]);
if (!imageToPush) {
core.info(`Removing ${imageToPush} from the Podman image storage`);
await execute(await getPodmanPath(), [ "rmi", imageToPush ]);
}
}
async function execute(