Skip to content

Commit

Permalink
fix: use gnu when alpine-release does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Feb 15, 2025
1 parent 0c83fb1 commit 1952303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/blink/cmp/fuzzy/download/system.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ function system.get_linux_libc()
:map(function(libc)
if libc ~= nil then return libc end

return async.task.new(function(resolve, reject)
return async.task.new(function(resolve)
vim.uv.fs_stat('/etc/alpine-release', function(err, is_alpine)
if err then return reject(err) end
if err then return resolve('gnu') end
resolve(is_alpine ~= nil and 'musl' or 'gnu')
end)
end)
Expand Down

0 comments on commit 1952303

Please sign in to comment.