diff options
| author | Chris Lu <chris.lu@uber.com> | 2019-03-30 23:09:16 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@uber.com> | 2019-03-30 23:09:16 -0700 |
| commit | 78ac2bef3cf5083d9e79e5d1a4e6557a097a26ef (patch) | |
| tree | cdd85bee7ac24af60b9813aaac5858b1e0fecbca /weed/shell | |
| parent | 97406333a5ecc5b0d2cdaa74ff9901e3100e4bf2 (diff) | |
| download | seaweedfs-78ac2bef3cf5083d9e79e5d1a4e6557a097a26ef.tar.xz seaweedfs-78ac2bef3cf5083d9e79e5d1a4e6557a097a26ef.zip | |
go fmt
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("├──") } |
