-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up Hdparm.DriveCapabilities a little bit
Just some minor tweaks for better readability. Moved variable definitions closer to first use to minimize needing to memorize context. Also, changed from per-field setting: ``` capability := new(common.Capabilty) capability.Name = capability.Description = capability.Enable = ``` to at instantiation: ``` capability := common.Capabilty{ Name: ..., Description: ..., Enable: ..., } ``` because the indentation helps with scanning. Otherwise the code just looks like one long block of code and its a pain to scan.
- Loading branch information
Showing
1 changed file
with
60 additions
and
45 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