diff options
| author | William Boman <william@redwill.se> | 2022-10-10 19:34:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-10 19:34:28 +0200 |
| commit | b83c31c46e41f101778369fe00122a169099e638 (patch) | |
| tree | 9247bd3ab54d2b96bbbeaeac65b885bf6492bd07 /lua/mason-core/managers/github/init.lua | |
| parent | fix(visualforce-language-server): remove custom release resolution code (#534) (diff) | |
| download | mason-b83c31c46e41f101778369fe00122a169099e638.tar mason-b83c31c46e41f101778369fe00122a169099e638.tar.gz mason-b83c31c46e41f101778369fe00122a169099e638.tar.bz2 mason-b83c31c46e41f101778369fe00122a169099e638.tar.lz mason-b83c31c46e41f101778369fe00122a169099e638.tar.xz mason-b83c31c46e41f101778369fe00122a169099e638.tar.zst mason-b83c31c46e41f101778369fe00122a169099e638.zip | |
feat(platform): better glibc detection (#537)
Diffstat (limited to 'lua/mason-core/managers/github/init.lua')
| -rw-r--r-- | lua/mason-core/managers/github/init.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lua/mason-core/managers/github/init.lua b/lua/mason-core/managers/github/init.lua index 7cdd494c..cf1e05f4 100644 --- a/lua/mason-core/managers/github/init.lua +++ b/lua/mason-core/managers/github/init.lua @@ -79,8 +79,7 @@ function M.release_file(opts) local asset_file if type(opts.asset_file) == "function" then asset_file = opts.asset_file(source.release) - else - assert(type(opts.asset_file) == "string", "expected asset_file to be a string") + elseif type(opts.asset_file) == "string" then asset_file = opts.asset_file --[[@as string]] end if not asset_file then |
