From 690f91a4b41a78adda91f1c6d1a7aed559cd3bc4 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 15 Nov 2025 21:04:11 +0800 Subject: improve graph --- xmake/core/base/graph.lua | 4 +--- 1 file changed, 1 insertion(+), 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) -- cgit v1.3.1