From 51eb11ffea75b97defed2417bfa469828e8819e2 Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Wed, 18 Dec 2024 18:27:10 +0200 Subject: [PATCH] Fix lint errors This change cleans up an unused variable and renames a reserved variable name. Signed-off-by: Gabriel Adrian Samfira --- powershell-yaml.psm1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/powershell-yaml.psm1 b/powershell-yaml.psm1 index 255a123..580dcfa 100644 --- a/powershell-yaml.psm1 +++ b/powershell-yaml.psm1 @@ -43,8 +43,7 @@ function Invoke-LoadFile { # Register the AssemblyResolve event to load dependencies manually. This seems to be needed only on # PowerShell Core. [System.AppDomain]::CurrentDomain.add_AssemblyResolve({ - param ($sender, $e) - $pth = $powershellYamlDotNetAssemblyPath + param ($snd, $e) # Load YamlDotNet if it's requested by PowerShellYamlSerializer. Ignore other requests as they might # originate from other assemblies that are not part of this module and which might have different # versions of the module that they need to load.