From fb7839d3e657e20869f90551ec71d38d118eb6c9 Mon Sep 17 00:00:00 2001 From: kercylan98 Date: Fri, 22 Sep 2023 10:42:59 +0800 Subject: [PATCH] =?UTF-8?q?recessive:=20=E6=8B=93=E6=89=91=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E5=8F=AF=E8=AF=BB=E6=80=A7=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/sorts/topological.go | 1 - 1 file changed, 1 deletion(-) diff --git a/utils/sorts/topological.go b/utils/sorts/topological.go index 3535219..920b609 100644 --- a/utils/sorts/topological.go +++ b/utils/sorts/topological.go @@ -14,7 +14,6 @@ type topologicalNode[V any] struct { // 该函数在存在循环依赖的情况下将会返回 ErrCircularDependencyDetected 错误 func Topological[Index comparable, V any](slice []V, queryIndexHandler func(item V) Index, queryDependsHandler func(item V) []Index) ([]V, error) { - // 1. 创建一个依赖关系图 var nodes = make(map[Index]*topologicalNode[V]) for _, item := range slice {