summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/plugins/show/info/depgraph.lua8
1 files changed, 1 insertions, 7 deletions
diff --git a/xmake/plugins/show/info/depgraph.lua b/xmake/plugins/show/info/depgraph.lua
index 0807d865a..c2a4db1ea 100644
--- a/xmake/plugins/show/info/depgraph.lua
+++ b/xmake/plugins/show/info/depgraph.lua
@@ -26,13 +26,7 @@ import("core.project.project")
import("private.detect.check_targetname")
function _collect_target_entry(target)
- local deps = {}
- local plain_deps = target:get("deps")
- if plain_deps then
- for _, dep in ipairs(plain_deps) do
- table.insert(deps, dep)
- end
- end
+ local deps = target:get("deps") or {}
return {
name = target:name(),