Skip to content

Commit 53b6207

Browse files
committed
Fix linter warnings
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
1 parent 7d3edd3 commit 53b6207

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/xcp_ng_dev/cli.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
import argparse
1212
import os
13-
import subprocess
1413
import shutil
14+
import subprocess
1515
import sys
1616
from pathlib import Path
1717

@@ -35,9 +35,7 @@
3535
def is_podman(runner):
3636
if os.path.basename(runner) == "podman":
3737
return True
38-
if subprocess.getoutput(f"{runner} --version").startswith("podman "):
39-
return True
40-
return False
38+
return subprocess.getoutput(f"{runner} --version").startswith("podman ")
4139

4240
def read_version():
4341
with open(Path(__file__).parent / 'files/version.txt') as f:

0 commit comments

Comments
 (0)