diff options
| author | William Boman <william@redwill.se> | 2022-09-14 20:55:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-14 18:55:44 +0000 |
| commit | 6ed2bf5907952646dec50200498329d13ee5765d (patch) | |
| tree | 9948c9500f91b4e1af1b116ee87828c4f948dc3a /lua/mason-core/managers/dotnet/init.lua | |
| parent | refactor: store link state in install context object (#419) (diff) | |
| download | mason-6ed2bf5907952646dec50200498329d13ee5765d.tar mason-6ed2bf5907952646dec50200498329d13ee5765d.tar.gz mason-6ed2bf5907952646dec50200498329d13ee5765d.tar.bz2 mason-6ed2bf5907952646dec50200498329d13ee5765d.tar.lz mason-6ed2bf5907952646dec50200498329d13ee5765d.tar.xz mason-6ed2bf5907952646dec50200498329d13ee5765d.tar.zst mason-6ed2bf5907952646dec50200498329d13ee5765d.zip | |
fix(dotnet): remove unnecessary nil check (#420)
Diffstat (limited to 'lua/mason-core/managers/dotnet/init.lua')
| -rw-r--r-- | lua/mason-core/managers/dotnet/init.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lua/mason-core/managers/dotnet/init.lua b/lua/mason-core/managers/dotnet/init.lua index 4ad752b6..ee5c734d 100644 --- a/lua/mason-core/managers/dotnet/init.lua +++ b/lua/mason-core/managers/dotnet/init.lua @@ -42,11 +42,9 @@ function M.install(pkg, opt) } if opt and opt.bin then - if opt.bin then - _.each(function(executable) - ctx:link_bin(executable, create_bin_path(executable)) - end, opt.bin) - end + _.each(function(executable) + ctx:link_bin(executable, create_bin_path(executable)) + end, opt.bin) end return { |
