summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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