Browse Source

only use "" for hdd to avoid two values for the same thing

pull/1811/head
Chris Lu 4 years ago
parent
commit
7403cd43c5
  1. 4
      weed/storage/types/volume_disk_type.go

4
weed/storage/types/volume_disk_type.go

@ -7,7 +7,7 @@ import (
type DiskType string
const (
HardDriveType DiskType = "hdd"
HardDriveType DiskType = ""
SsdType = "ssd"
)
@ -27,7 +27,7 @@ func ToDiskType(vt string) (diskType DiskType) {
func (diskType DiskType) String() string{
if diskType == "" {
return "hdd"
return ""
}
return string(diskType)
}
Loading…
Cancel
Save