mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-10 01:51:18 +10:00
Clean up analyzer warnings
This commit is contained in:
@@ -39,9 +39,11 @@ BeforeAll {
|
||||
process { }
|
||||
}
|
||||
function Get-Package {
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidOverwritingBuiltInCmdlets', '', Justification='Test shim is intentionally mocked by Pester.')]
|
||||
param($Name, $ErrorAction)
|
||||
}
|
||||
function Uninstall-Package {
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidOverwritingBuiltInCmdlets', '', Justification='Test shim is intentionally mocked by Pester.')]
|
||||
param(
|
||||
[Parameter(ValueFromPipeline = $true)]
|
||||
$InputObject,
|
||||
|
||||
@@ -80,8 +80,8 @@ Describe "Install app rendering startup contract" {
|
||||
$closeTimer = New-Object System.Windows.Threading.DispatcherTimer
|
||||
$closeTimer.Interval = [TimeSpan]::FromMilliseconds(25)
|
||||
$closeTimer.Add_Tick({
|
||||
param($sender)
|
||||
$timer = [System.Windows.Threading.DispatcherTimer]$sender
|
||||
param($eventSender)
|
||||
$timer = [System.Windows.Threading.DispatcherTimer]$eventSender
|
||||
|
||||
if ($global:sync.InstallAppEntriesRendered -or $timeout.Elapsed.TotalSeconds -gt 5) {
|
||||
$timer.Stop()
|
||||
|
||||
Reference in New Issue
Block a user