diff options
| -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) |
