mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-24 15:00:43 +02:00
refactoring, go fmt
This commit is contained in:
1 parent
19728fe3f6
commit
7a14cdc90c
7 files changed
+34
-50
No files matched your search
@@ -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], ""
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user