Skip to content

Commit

Permalink
Storage: do not omit removable field if false
Browse files Browse the repository at this point in the history
  • Loading branch information
PeaceRebel committed Jan 16, 2025
1 parent 7f71d52 commit 7aa39ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type StorageDevice struct {
Model string `json:"model,omitempty"`
Serial string `json:"serial,omitempty"`
Size uint `json:"size,omitempty"` // device size in GB
Removable bool `json:"removable,omitempty"`
Removable bool `json:"removable"`
}

func getSerial(name, fullpath string) (serial string) {
Expand Down

0 comments on commit 7aa39ac

Please sign in to comment.