From b83c31c46e41f101778369fe00122a169099e638 Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 10 Oct 2022 19:34:28 +0200 Subject: feat(platform): better glibc detection (#537) --- lua/mason-core/managers/github/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lua/mason-core/managers/github/init.lua') 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 -- cgit v1.2.3-70-g09d2