mirror of
https://github.com/rommapp/romm.git
synced 2026-12-05 05:07:31 +01:00
fix(retroachievements): fix indentation in native-hash dispatch
The review suggestion collapsing the dispatch into a conditional expression landed with a mis-indented line, which broke module parsing. Keep the conditional-expression form, formatted. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -235,7 +235,14 @@ class RAHasherService:
|
||||
if platform["ra_id"] in (NGC_RA_ID, WII_RA_ID) and is_rvz_native_hash_file(
|
||||
file_path
|
||||
):
|
||||
native_hash = await asyncio.to_thread(calculate_gamecube_ra_hash if platform["ra_id"] == NGC_RA_ID else calculate_wii_ra_hash, file_path)
|
||||
native_hash = await asyncio.to_thread(
|
||||
(
|
||||
calculate_gamecube_ra_hash
|
||||
if platform["ra_id"] == NGC_RA_ID
|
||||
else calculate_wii_ra_hash
|
||||
),
|
||||
file_path,
|
||||
)
|
||||
if native_hash:
|
||||
log.debug(
|
||||
f"Computed native {hl('RA', color=LIGHTMAGENTA)} hash for "
|
||||
|
||||
Reference in New Issue
Block a user