mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-22 06:17:20 +00:00

Currently, `DriveScannerService` is in charge of both scanning the available drives and maintaining the state of the currently detected drives. To honour the single responsibility principle, we split this service into a `DrivesModel`, which is incharge of maintaining the state without caring how they are detected, and `DriveScannerService`, which only scans the available drives and modified `DrivesModel` accordingly. Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>