aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_fs_du.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@uber.com>2019-03-25 23:18:40 -0700
committerChris Lu <chris.lu@uber.com>2019-03-25 23:18:40 -0700
commit7a14cdc90cc673286e501b900ec28b7f186f2cfe (patch)
tree60218d8344aa343a115fd94c00961407b3fdc735 /weed/shell/command_fs_du.go
parent19728fe3f6dd66047fe2efd769932a7706833170 (diff)
downloadseaweedfs-7a14cdc90cc673286e501b900ec28b7f186f2cfe.tar.xz
seaweedfs-7a14cdc90cc673286e501b900ec28b7f186f2cfe.zip
refactoring, go fmt
Diffstat (limited to 'weed/shell/command_fs_du.go')
-rw-r--r--weed/shell/command_fs_du.go6
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], ""
}
}