summaryrefslogtreecommitdiff
path: root/xmake/core/base/table.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-02-03 15:39:46 +0800
committerruki <[email protected]>2019-02-03 15:39:46 +0800
commit06b2019d196040f2825be5eab174f57f098c8ae2 (patch)
tree18314d21cd44e6b12d253090ada0b02a2348792c /xmake/core/base/table.lua
parent640c2e7e81809d122adca38aca09d2448f14ed50 (diff)
fix table.unique
Diffstat (limited to 'xmake/core/base/table.lua')
-rw-r--r--xmake/core/base/table.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/table.lua b/xmake/core/base/table.lua
index b8633f22e..6cbead284 100644
--- a/xmake/core/base/table.lua
+++ b/xmake/core/base/table.lua
@@ -228,8 +228,8 @@ end
-- remove repeat from the given array
function table.unique(array, barrier)
- -- remove repeat
- if type(array) == "table" then
+ -- remove repeat for array
+ if table.is_array(array) then
-- not only one?
if table.getn(array) ~= 1 then