diff options
| author | ruki <[email protected]> | 2025-11-15 21:04:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-15 21:04:11 +0800 |
| commit | 690f91a4b41a78adda91f1c6d1a7aed559cd3bc4 (patch) | |
| tree | 2f5eebebee3ae0ead836f10028f4865507d444ab /xmake/core/base/graph.lua | |
| parent | 8e22161532841d2f9cc293e8a88a8f1cc2527cdf (diff) | |
improve graph
Diffstat (limited to 'xmake/core/base/graph.lua')
| -rw-r--r-- | xmake/core/base/graph.lua | 4 |
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) |
