diff options
| author | William Boman <william@redwill.se> | 2024-05-11 21:22:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-11 21:22:49 +0200 |
| commit | 0f1cb65f436b769733d18b41572f617a1fb41f62 (patch) | |
| tree | 05da82b94b6abd153c300418e019d4a3401ab5ef /lua/mason-core/installer/registry/util.lua | |
| parent | perf(registry): significantly improve the "file:" protocol performance (#1702) (diff) | |
| download | mason-0f1cb65f436b769733d18b41572f617a1fb41f62.tar mason-0f1cb65f436b769733d18b41572f617a1fb41f62.tar.gz mason-0f1cb65f436b769733d18b41572f617a1fb41f62.tar.bz2 mason-0f1cb65f436b769733d18b41572f617a1fb41f62.tar.lz mason-0f1cb65f436b769733d18b41572f617a1fb41f62.tar.xz mason-0f1cb65f436b769733d18b41572f617a1fb41f62.tar.zst mason-0f1cb65f436b769733d18b41572f617a1fb41f62.zip | |
fix: fix usage of deprecated Neovim APIs (#1703)
Diffstat (limited to 'lua/mason-core/installer/registry/util.lua')
| -rw-r--r-- | lua/mason-core/installer/registry/util.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/mason-core/installer/registry/util.lua b/lua/mason-core/installer/registry/util.lua index d0045a3e..b3735c9c 100644 --- a/lua/mason-core/installer/registry/util.lua +++ b/lua/mason-core/installer/registry/util.lua @@ -12,7 +12,7 @@ local M = {} ---@param opts PackageInstallOpts ---@return Result # Result<T> function M.coalesce_by_target(candidates, opts) - if not vim.tbl_islist(candidates) then + if not _.is_list(candidates) then return Result.success(candidates) end return Optional.of_nilable(_.find_first(function(asset) |
