From 7403cd43c5e6fa7a7b32dba817bdf99c1f27b2eb Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 16 Feb 2021 10:50:42 -0800 Subject: [PATCH] only use "" for hdd to avoid two values for the same thing --- weed/storage/types/volume_disk_type.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/storage/types/volume_disk_type.go b/weed/storage/types/volume_disk_type.go index d49891a63..0e199a626 100644 --- a/weed/storage/types/volume_disk_type.go +++ b/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) }