Skip to content

Commit 8e5662f

Browse files
🩹 [Refactor]: Suppress output of type accelerator removal in Build-PSModuleRootModule.ps1 for cleaner execution
1 parent f29095d commit 8e5662f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎scripts/helpers/Build/Build-PSModuleRootModule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ foreach ($Type in $ExportableClasses) {
115115
# Remove type accelerators when the module is removed.
116116
$MyInvocation.MyCommand.ScriptBlock.Module.OnRemove = {
117117
foreach ($Type in ($ExportableEnums + $ExportableClasses)) {
118-
$TypeAcceleratorsClass::Remove($Type.FullName)
118+
$null = $TypeAcceleratorsClass::Remove($Type.FullName)
119119
}
120120
}.GetNewClosure()
121121
#endregion Class exporter

0 commit comments

Comments
 (0)