File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/PSAppDeployToolkit.Tools/PSScriptAnalyzer Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ function Measure-ADTCompatibility
1616{
1717 [CmdletBinding ()]
1818 [OutputType ([Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.DiagnosticRecord ])]
19- Param
19+ param
2020 (
2121 [Parameter (Mandatory = $true )]
2222 [ValidateNotNullOrEmpty ()]
2323 [System.Management.Automation.Language.ScriptBlockAst ]
2424 $ScriptBlockAst
2525 )
2626
27- Begin
27+ begin
2828 {
2929 if ($ScriptBlockAst.Parent ) { return } # Only process the root ScriptBlockAst
3030
@@ -848,7 +848,7 @@ function Measure-ADTCompatibility
848848 [Boolean ]$ContinueOnError
849849 )
850850 }
851- If (-not (Get-Command - Name ' Get-ScheduledTask' - ErrorAction ' SilentlyContinue' ))
851+ if (-not (Get-Command - Name ' Get-ScheduledTask' - ErrorAction ' SilentlyContinue' ))
852852 {
853853 New-Alias - Name ' Get-ScheduledTask' - Value ' Get-SchedulerTask'
854854 }
@@ -2606,7 +2606,7 @@ function Measure-ADTCompatibility
26062606 $spBinder = [System.Management.Automation.Language.StaticParameterBinder ]
26072607 }
26082608
2609- Process
2609+ process
26102610 {
26112611 try
26122612 {
You can’t perform that action at this time.
0 commit comments