Skip to content

Commit

Permalink
Utilize a more consistent if statement
Browse files Browse the repository at this point in the history
Signed-off-by: Zeglius <[email protected]>
  • Loading branch information
Zeglius committed Jan 25, 2025
1 parent 8f60372 commit 6d4c31d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -2490,7 +2490,8 @@ def container_to_build_args(compose, cnt, args, path_exists, cleanup_callbacks=N
dockerfile = dockerfile.name

def cleanup_temp_dockfile():
os.remove(dockerfile) if os.path.exists(dockerfile) else None
if os.path.exists(dockerfile):
os.remove(dockerfile)

if cleanup_callbacks is not None:
list.append(cleanup_callbacks, cleanup_temp_dockfile)
Expand Down

0 comments on commit 6d4c31d

Please sign in to comment.