From 8d210b47dae26b061131004f61ba48cce6429d4e Mon Sep 17 00:00:00 2001 From: Akaps316 <48785708+Akaps316@users.noreply.github.com> Date: Sat, 18 Apr 2026 12:38:56 +0530 Subject: refactor: simplify target deps retrieval per PR review --- xmake/plugins/show/info/depgraph.lua | 8 +------- 1 file changed, 1 insertion(+), 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(), -- cgit v1.3.1