diff options
Diffstat (limited to 'weed/shell/command_fs_du.go')
| -rw-r--r-- | weed/shell/command_fs_du.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/shell/command_fs_du.go b/weed/shell/command_fs_du.go index 1206596b0..3fecac9a8 100644 --- a/weed/shell/command_fs_du.go +++ b/weed/shell/command_fs_du.go @@ -42,10 +42,10 @@ func (c *commandFsDu) Do(args []string, commandEnv *commandEnv, writer io.Writer dir, name := filer2.FullPath(path).DirAndName() if strings.HasSuffix(path, "/") { - if path == "/"{ + if path == "/" { dir, name = "/", "" - }else{ - dir, name = path[0 : len(path)-1], "" + } else { + dir, name = path[0:len(path)-1], "" } } |
