diff options
Diffstat (limited to 'weed/shell')
| -rw-r--r-- | weed/shell/command_fs_ls.go | 2 | ||||
| -rw-r--r-- | weed/shell/command_fs_tree.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/weed/shell/command_fs_ls.go b/weed/shell/command_fs_ls.go index 39f356916..b94f24694 100644 --- a/weed/shell/command_fs_ls.go +++ b/weed/shell/command_fs_ls.go @@ -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], "" } } diff --git a/weed/shell/command_fs_tree.go b/weed/shell/command_fs_tree.go index 019616627..805b17d2a 100644 --- a/weed/shell/command_fs_tree.go +++ b/weed/shell/command_fs_tree.go @@ -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("├──") } |
