Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGough committed Dec 23, 2024
1 parent 48afad9 commit 1e5e9f0
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1876,7 +1876,9 @@ function Measure-ADTCompatibility
'AllowDeferCloseApps' = '-AllowDeferCloseProcesses' # Should inspect switch values here in case of -Switch:$false
'CloseApps' = {
$quoteChar = if ($boundParameters.CloseApps.Value.StringConstantType -eq 'DoubleQuoted') { '"' } else { "'" }
$closeProcesses = $boundParameters.CloseApps.Value.Value -split ',' | & { process {
$closeProcesses = $boundParameters.CloseApps.Value.Value -split ',' | & {
process
{
$name, $description = $_ -split '='
if ($description)
{
Expand All @@ -1886,7 +1888,8 @@ function Measure-ADTCompatibility
{
"$quoteChar$($name)$quoteChar"
}
}} -join ', '
}
} -join ', '
"-CloseProcesses $closeProcesses"
}
}
Expand Down

0 comments on commit 1e5e9f0

Please sign in to comment.