Skip to content

Commit

Permalink
Spelling and remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
msftrubengu committed Sep 19, 2023
1 parent 8789d82 commit 034c019
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ objbase
objidl
ofile
ools
oop
OPTOUT
osfhandle
Outptr
Expand Down Expand Up @@ -464,6 +465,7 @@ TOptions
TProgress
transitioning
TResult
TReturn
trimstart
TState
TStatus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ internal InstallCommand(PSCmdlet psCmdlet)
/// Gets the install options from the configured parameters.
/// </summary>
/// <param name="version">The <see cref="PackageVersionId" /> to install.</param>
/// <param name="mode">Pacakge install mode as string.</param>
/// <param name="mode">Package install mode as string.</param>
/// <returns>An <see cref="InstallOptions" /> instance.</returns>
protected virtual InstallOptions GetInstallOptions(PackageVersionId version, string mode)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

namespace Microsoft.WinGet.Client.Engine.Commands
{
using System;
using System.Management.Automation;
using System.Text.RegularExpressions;
using Microsoft.Management.Deployment;
using Microsoft.WinGet.Client.Engine.Commands.Common;
using Microsoft.WinGet.Client.Engine.Helpers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static PackageManagerWrapper Instance
}

/// <summary>
/// Wrapper for InstalllPackageAsync.
/// Wrapper for InstallPackageAsync.
/// </summary>
/// <param name="package">The package to install.</param>
/// <param name="options">The install options.</param>
Expand Down
1 change: 0 additions & 1 deletion src/PowerShell/scripts/Initialize-LocalWinGetModules.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class WinGetModule

[void]PrepareBinaryFiles([string] $buildRoot, [string] $config)
{
#xcopy "$buildRoot\AnyCpu\$config\PowerShell\$($this.Name)\" $this.Output /d /s /f /y
$copyErrors = $null
Copy-Item "$buildRoot\AnyCpu\$config\PowerShell\$($this.Name)\*" $this.Output -Force -Recurse -ErrorVariable copyErrors -ErrorAction SilentlyContinue
$copyErrors | ForEach-Object { Write-Warning $_ }
Expand Down
2 changes: 1 addition & 1 deletion src/PowerShell/tests/Microsoft.WinGet.Client.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ Describe 'WindowsPackageManagerServer' -Skip:($PSEdition -eq "Desktop") {
# This tests does all the Microsoft.WinGet.Client calls in a different pwsh instance.
It 'Graceful termination' {
$typeTable = [System.Management.Automation.Runspaces.TypeTable]::LoadDefaultTypeFiles()
$oopRunspace = [System.Management.Automation.Runspaces.RunspaceFactory]::CreateOutOfProcessRunspace($typetable)
$oopRunspace = [System.Management.Automation.Runspaces.RunspaceFactory]::CreateOutOfProcessRunspace($typeTable)
$oopRunspace.Open()
$oopPwsh = [PowerShell]::Create()
$oopPwsh.Runspace = $oopRunspace
Expand Down

0 comments on commit 034c019

Please sign in to comment.