aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount_std.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/mount_std.go')
-rw-r--r--weed/command/mount_std.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index e2aa7e7d4..56338e327 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -169,11 +169,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
mountRoot = mountRoot[0 : len(mountRoot)-1]
}
- diskType, err := storage.ToDiskType(*option.diskType)
- if err != nil {
- fmt.Printf("failed to parse volume type: %v\n", err)
- return false
- }
+ diskType := storage.ToDiskType(*option.diskType)
seaweedFileSystem := filesys.NewSeaweedFileSystem(&filesys.Option{
MountDirectory: dir,