summaryrefslogtreecommitdiff
path: root/xmake/core/base/table.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-03-02 23:11:24 +0800
committerruki <[email protected]>2022-03-02 23:11:24 +0800
commit0654d3ea2b7a9063adadd6b3a2c5fe2b0ff7883f (patch)
tree2a14b81b51a2f17280519f662944f45edbff6814 /xmake/core/base/table.lua
parent97fc3a089b3aacbb96c36de154f0f024da1e8070 (diff)
fix format
Diffstat (limited to 'xmake/core/base/table.lua')
-rw-r--r--xmake/core/base/table.lua6
1 files changed, 0 insertions, 6 deletions
diff --git a/xmake/core/base/table.lua b/xmake/core/base/table.lua
index 9868c93d5..2cf617f3b 100644
--- a/xmake/core/base/table.lua
+++ b/xmake/core/base/table.lua
@@ -324,18 +324,12 @@ end
-- wrap object to table
function table.wrap(object)
-
- -- no object?
if nil == object then
return {}
end
-
- -- wrap it if not table
if type(object) ~= "table" then
return {object}
end
-
- -- ok
return object
end