浏览代码

Continue early if a node does not have any parents in TrimTree

Wade Simba Khadder 8 年前
父节点
当前提交
0070468e3c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      internal/graph/graph.go

+ 1
- 0
internal/graph/graph.go 查看文件

360
 			for _, outEdge := range cur.Out {
360
 			for _, outEdge := range cur.Out {
361
 				delete(outEdge.Dest.In, cur)
361
 				delete(outEdge.Dest.In, cur)
362
 			}
362
 			}
363
+			continue
363
 		}
364
 		}
364
 
365
 
365
 		// Get the parent. Since cur.In may only be of size 0 or 1, parent will be
366
 		// Get the parent. Since cur.In may only be of size 0 or 1, parent will be