diff options
| author | Akaps316 <[email protected]> | 2026-04-18 12:38:56 +0530 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-04-20 09:35:36 +0800 |
| commit | 8d210b47dae26b061131004f61ba48cce6429d4e (patch) | |
| tree | 06d4169f07547ec91584b859b504456e65c4d348 | |
| parent | 7eada8439652626e484c0011a4ae536b916cc7fe (diff) | |
refactor: simplify target deps retrieval per PR review
| -rw-r--r-- | xmake/plugins/show/info/depgraph.lua | 8 |
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(), |
