1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-03 01:00:04 +02:00

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

This commit is contained in:
Chris Lu 2021-02-16 10:50:42 -08:00
parent b314d78e97
commit 7403cd43c5

View file

@ -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)
}