This commit is contained in:
Chris Lu
2019-03-30 23:09:16 -07:00
parent 97406333a5
commit 78ac2bef3c
7 changed files with 18 additions and 18 deletions

View File

@@ -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], ""
}
}