diff options
| author | Jérôme Leclercq <[email protected]> | 2022-12-22 11:38:18 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-22 11:38:18 +0100 |
| commit | 99e9ce23871314c8d5ac24d588950cfcfa6f11ac (patch) | |
| tree | c90d3db9698ad759856d17f21c47c89033485e08 | |
| parent | 843229827401586f1a9ddc623d7258df589aec94 (diff) | |
Update extract.lua
| -rw-r--r-- | xmake/modules/utils/archive/extract.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/xmake/modules/utils/archive/extract.lua b/xmake/modules/utils/archive/extract.lua index 94246ef05..8a6fbcd02 100644 --- a/xmake/modules/utils/archive/extract.lua +++ b/xmake/modules/utils/archive/extract.lua @@ -371,12 +371,7 @@ end -- extract archive file using extractors function _extract(archivefile, outputdir, extension, extractors, opt) for _, extract in ipairs(extractors) do - local ok = try - { - function () - return extract(archivefile, outputdir, extension, opt) - end - } + local ok = try {function () return extract(archivefile, outputdir, extension, opt) end} if ok then return true end |
