diff options
| author | ruki <[email protected]> | 2024-02-23 09:00:15 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-23 09:00:15 +0800 |
| commit | a089eec876484f7cbdc14612ddc4aecf0714ac4d (patch) | |
| tree | 4a3f01ef4fa3e764baba3063c3b0bc304f262dda /xmake/plugins/format/main.lua | |
| parent | 2ea998a51ab8327571da3c113d333d5fc0276e13 (diff) | |
Update main.lua
Diffstat (limited to 'xmake/plugins/format/main.lua')
| -rw-r--r-- | xmake/plugins/format/main.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/plugins/format/main.lua b/xmake/plugins/format/main.lua index 66bcebcb3..52c64d3b0 100644 --- a/xmake/plugins/format/main.lua +++ b/xmake/plugins/format/main.lua @@ -92,18 +92,18 @@ end -- get all the targets that match the group or targetname function _get_targets(targetname, group_pattern) - local targets_root = {} + local targets = {} if targetname then - table.insert(targets_root, project.target(targetname)) + table.insert(targets, project.target(targetname)) else for _, target in pairs(project.targets()) do local group = target:get("group") if (target:is_default() and not group_pattern) or option.get("all") or (group_pattern and group and group:match(group_pattern)) then - table.insert(targets_root, target) + table.insert(targets, target) end end end - return targets_root + return targets end -- main |
