diff options
| author | ruki <[email protected]> | 2019-02-03 15:39:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-02-03 15:39:46 +0800 |
| commit | 06b2019d196040f2825be5eab174f57f098c8ae2 (patch) | |
| tree | 18314d21cd44e6b12d253090ada0b02a2348792c | |
| parent | 640c2e7e81809d122adca38aca09d2448f14ed50 (diff) | |
fix table.unique
| -rw-r--r-- | xmake/core/base/table.lua | 4 |
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 |
