Skip to content

Commit 51eb11f

Browse files
Fix lint errors
This change cleans up an unused variable and renames a reserved variable name. Signed-off-by: Gabriel Adrian Samfira <[email protected]>
1 parent 380d647 commit 51eb11f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

powershell-yaml.psm1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ function Invoke-LoadFile {
4343
# Register the AssemblyResolve event to load dependencies manually. This seems to be needed only on
4444
# PowerShell Core.
4545
[System.AppDomain]::CurrentDomain.add_AssemblyResolve({
46-
param ($sender, $e)
47-
$pth = $powershellYamlDotNetAssemblyPath
46+
param ($snd, $e)
4847
# Load YamlDotNet if it's requested by PowerShellYamlSerializer. Ignore other requests as they might
4948
# originate from other assemblies that are not part of this module and which might have different
5049
# versions of the module that they need to load.

0 commit comments

Comments
 (0)