aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/managers/dotnet/init.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-09-14 20:55:44 +0200
committerGitHub <noreply@github.com>2022-09-14 18:55:44 +0000
commit6ed2bf5907952646dec50200498329d13ee5765d (patch)
tree9948c9500f91b4e1af1b116ee87828c4f948dc3a /lua/mason-core/managers/dotnet/init.lua
parentrefactor: store link state in install context object (#419) (diff)
downloadmason-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.lua8
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 {