Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Oleksandr Kulkov <[email protected]>
  • Loading branch information
akahles and adamant-pwn authored Nov 19, 2024
1 parent c2451cb commit 58a36e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions archiver/integrity.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ def check_archive_part_integrity(source_name: Path) -> bool:
def check_archive_list_integrity(source_path: Path, archive_name: str = None) -> bool:

parts = helpers.get_parts(source_path)
if archive_name is None:
source_name = helpers.infer_source_name(source_path)
else:
if archive_name:
source_name = source_path / Path(archive_name)
else:
source_name = helpers.infer_source_name(source_path)

logging.info(f'Found {parts} parts in archive {source_path.as_posix()}')
check_result = True
Expand Down

0 comments on commit 58a36e1

Please sign in to comment.