diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-07-22 01:15:11 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-07-22 01:15:11 -0700 |
| commit | 0655151b8c55ea3c34dd59277da1599279740164 (patch) | |
| tree | 01d4c5963dfb0bd39fbfa4f94efa8bc0c804f1b6 /weed/command | |
| parent | 6319d84f42fba2a1c1617c4d2603adac4ea57301 (diff) | |
| download | seaweedfs-0655151b8c55ea3c34dd59277da1599279740164.tar.xz seaweedfs-0655151b8c55ea3c34dd59277da1599279740164.zip | |
go fmt
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/mount.go | 2 | ||||
| -rw-r--r-- | weed/command/mount_std.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/mount.go b/weed/command/mount.go index 0912a51ba..613066951 100644 --- a/weed/command/mount.go +++ b/weed/command/mount.go @@ -1,9 +1,9 @@ package command import ( - "strings" "fmt" "strconv" + "strings" ) type MountOptions struct { diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index 8f4d8dc36..92dcc9008 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -60,7 +60,7 @@ func runMount(cmd *Command, args []string) bool { mountRoot := *mountOptions.filerMountRootPath if mountRoot != "/" && strings.HasSuffix(mountRoot, "/") { - mountRoot = mountRoot[0: len(mountRoot)-1] + mountRoot = mountRoot[0 : len(mountRoot)-1] } err = fs.Serve(c, filesys.NewSeaweedFileSystem(&filesys.Option{ |
