installer.py#installer: base_dir is always not None
@@ -1123,7 +1123,6 @@ def installer(
with py7zr.SevenZipFile(archive, "r") as szf:
szf.extractall(path=base_dir)
else:
- if base_dir is not None:
command_args = [
command,
"x",
@@ -1133,8 +1132,6 @@ def installer(
"-o{}".format(base_dir),
str(archive),
]
- else:
- command_args = [command, "x", "-aoa", "-bd", "-y", str(archive)]
try:
proc = subprocess.run(command_args, stdout=subprocess.PIPE, check=True)
logger.debug(proc.stdout)
