This commit is contained in:
Alex Yatskov 2015-06-22 13:10:07 +09:00
parent c4323d28dc
commit b50c09f74a

8
dir.go
View File

@ -118,9 +118,7 @@ func (vd *verDir) removeDir(name string) error {
if err := os.Remove(node.rebasedPath()); err != nil {
return err
}
}
if node.parent != nil {
} else {
vd.node.ver.meta.removeNode(node.path)
}
@ -138,9 +136,7 @@ func (vd *verDir) removeFile(name string) error {
if err := os.Remove(node.rebasedPath()); err != nil {
return err
}
}
if node.parent != nil {
} else {
vd.node.ver.meta.removeNode(node.path)
}