summaryrefslogtreecommitdiff
path: root/xmake/core/base/graph.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-11-15 21:04:11 +0800
committerruki <[email protected]>2025-11-15 21:04:11 +0800
commit690f91a4b41a78adda91f1c6d1a7aed559cd3bc4 (patch)
tree2f5eebebee3ae0ead836f10028f4865507d444ab /xmake/core/base/graph.lua
parent8e22161532841d2f9cc293e8a88a8f1cc2527cdf (diff)
improve graph
Diffstat (limited to 'xmake/core/base/graph.lua')
-rw-r--r--xmake/core/base/graph.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmake/core/base/graph.lua b/xmake/core/base/graph.lua
index 6c86d1486..be0035394 100644
--- a/xmake/core/base/graph.lua
+++ b/xmake/core/base/graph.lua
@@ -416,9 +416,7 @@ function graph:remove_edge(from, to)
break
end
end
- if not target_edge then
- return
- end
+ assert(target_edge, string.format("graph.remove_edge(%s, %s): edge not found", tostring(from), tostring(to)))
table.remove(edges, target_index)