This commit is contained in:
xushiwei
2024-06-07 13:48:36 +08:00
parent 62e721b1c8
commit 4868903844
3 changed files with 70 additions and 1 deletions

View File

@@ -74,7 +74,7 @@ func findLoop(states []*blockState, path []int, from, iblk int) []int {
}
return path
}
if ret := findLoop(states, path, from, succ); ret != nil {
if ret := findLoop(states, path, from, succ); len(ret) > 0 {
return ret
}
}