update if condition

This commit is contained in:
qm012 2021-07-08 10:09:04 +08:00
parent a3ee271287
commit 2d657d45d2

View File

@ -600,7 +600,8 @@ walk: // Outer loop for walking the tree
return
}
if path != "/" && skippedPath != "" {
// path != "/" && skippedPath != ""
if len(path) != 1 && len(skippedPath) > 0 && strings.HasSuffix(skippedPath, path) {
path = skippedPath
n = latestNode
skippedPath = ""