This commit is contained in:
Chris Lu
2020-03-26 00:09:01 -07:00
parent 7f0d87b206
commit dd5b582d05
8 changed files with 42 additions and 35 deletions

View File

@@ -41,7 +41,7 @@ func (fp FullPath) AsInode() uint64 {
// split, but skipping the root
func (fp FullPath) Split() []string {
if fp == "" || fp == "/"{
if fp == "" || fp == "/" {
return []string{}
}
return strings.Split(string(fp)[1:], "/")