From 9c0b0b8913f66d29e28549cc0b417581ed2067c9 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Thu, 12 Sep 2024 09:49:06 -0500 Subject: [PATCH] format update --- functions/private/Install-WinUtilChoco.ps1 | 4 ++-- functions/public/Invoke-WPFRunspace.ps1 | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/functions/private/Install-WinUtilChoco.ps1 b/functions/private/Install-WinUtilChoco.ps1 index 5e56d1ad..bb4460e2 100644 --- a/functions/private/Install-WinUtilChoco.ps1 +++ b/functions/private/Install-WinUtilChoco.ps1 @@ -15,8 +15,8 @@ function Install-WinUtilChoco { } # Install logic taken from https://chocolatey.org/install#individual Write-Host "Seems Chocolatey is not installed, installing now." - Set-ExecutionPolicy Bypass -Scope Process -Force; - [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; + Set-ExecutionPolicy Bypass -Scope Process -Force; + [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) } catch { diff --git a/functions/public/Invoke-WPFRunspace.ps1 b/functions/public/Invoke-WPFRunspace.ps1 index f8c93c6e..67c01b8f 100644 --- a/functions/public/Invoke-WPFRunspace.ps1 +++ b/functions/public/Invoke-WPFRunspace.ps1 @@ -10,9 +10,9 @@ function Invoke-WPFRunspace { .PARAMETER ArgumentList A list of arguments to pass to the runspace - + .PARAMETER ParameterList - A list of named parameters that should be provided. + A list of named parameters that should be provided. .EXAMPLE Invoke-WPFRunspace ` -ScriptBlock $sync.ScriptsInstallPrograms ` @@ -37,8 +37,8 @@ function Invoke-WPFRunspace { # Add Scriptblock and Arguments to runspace $script:powershell.AddScript($ScriptBlock) $script:powershell.AddArgument($ArgumentList) - - foreach ($parameter in $ParameterList){ + + foreach ($parameter in $ParameterList) { $script:powershell.AddParameter($parameter[0], $parameter[1]) } $script:powershell.AddArgument($DebugPreference) # Pass DebugPreference to the script block