Skip to content

Commit 02619e9

Browse files
compact dict try-get mechanism
1 parent 3a71def commit 02619e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ffmpeg_downloader/_linux.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818

1919
# place the matching cpu arch first (need test)
2020
arch = platform.machine()
21-
if arch in mapping:
22-
arch = mapping[arch]
21+
arch = mapping.get(arch, arch) # resolve alias
2322
try:
2423
# TODO - adjust as feedback for different architecture is provided
2524
i = asset_priority.index(arch)

0 commit comments

Comments
 (0)