mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 10:17:24 +08:00
go fmt
This commit is contained in:
@@ -54,7 +54,7 @@ func (c *commandFsLs) Do(args []string, commandEnv *commandEnv, writer io.Writer
|
||||
if path == "/" {
|
||||
dir, name = "/", ""
|
||||
} else {
|
||||
dir, name = path[0 : len(path)-1], ""
|
||||
dir, name = path[0:len(path)-1], ""
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -39,7 +39,7 @@ func (c *commandFsTree) Do(args []string, commandEnv *commandEnv, writer io.Writ
|
||||
if path == "/" {
|
||||
dir, name = "/", ""
|
||||
} else {
|
||||
dir, name = path[0 : len(path)-1], ""
|
||||
dir, name = path[0:len(path)-1], ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ func (p *Prefix) getPrefix(level int, isLastChild bool) string {
|
||||
}
|
||||
if isLastChild {
|
||||
sb.WriteString("└──")
|
||||
p.removeMarker(level);
|
||||
p.removeMarker(level)
|
||||
} else {
|
||||
sb.WriteString("├──")
|
||||
}
|
||||
|
Reference in New Issue
Block a user