Skip to content

Commit

Permalink
use :=
Browse files Browse the repository at this point in the history
  • Loading branch information
obfusk committed Jan 7, 2025
1 parent 9a37000 commit 8482dcb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apksigcopier/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1366,8 +1366,7 @@ def do_extract(signed_apk: str, output_dir: str, v1_only: NoAutoYesBoolNone = NO
with open(os.path.join(output_dir, SIGBLOCK), "wb") as fh:
fh.write(signed_sb)
if not (ignore_differences or v1_sig):
differences = extract_differences(signed_apk, extracted_meta)
if differences:
if differences := extract_differences(signed_apk, extracted_meta):
with open(os.path.join(output_dir, DIFF_JSON), "w", encoding="utf-8") as fh:
json.dump(differences, fh, sort_keys=True, indent=2)
fh.write("\n")
Expand Down

0 comments on commit 8482dcb

Please sign in to comment.