mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
misc: Refactor scan process by splitting single function
This change mainly refactors the `scan_platforms` function, moving part of its logic to `_identify_platform`, `_identify_firmware`, and `_identify_rom`. The logic is simpler this way, each smaller function returns `ScanStats` that can be merged by the caller, and it simplifies future performance improvements.
This commit is contained in:
1
backend/exceptions/socket_exceptions.py
Normal file
1
backend/exceptions/socket_exceptions.py
Normal file
@@ -0,0 +1 @@
|
||||
class ScanStoppedException(Exception): ...
|
||||
Reference in New Issue
Block a user