-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disk: extract
getDevicesNoRename()
and tweak getDevices()
We currently do a lot of: ``` lastDevice := stageDevices[lastName] delete(stageDevices, lastName) stageDevices["device"] = lastDevice ``` which this commit consolidates into the `getDevices()` helper. The only place that needs the "old" behavior is `GenMountsDevicesFromPT` and here we can use the new `getDevicesNoRename()` helper. Note that this is still pretty messy and needs further refactor.
- Loading branch information
Showing
2 changed files
with
23 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters