Skip to content

Commit da3d104

Browse files
Whitespace cleaning
1 parent 955a6ee commit da3d104

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Function/Set-ScheduledTask.ps1

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,21 @@ switch ($method) {
6666

6767
#Overall task comparison
6868
Write-Debug "DEBUG: Scheduled task: $task"
69-
69+
7070
#Fail condition
7171
if ($null -eq $task) {
7272
Write-Progress -Activity "Testing Scheduled Task" -CurrentOperation "Comparison failed - Task Missing" -Completed -Id 1
7373
return $false
7474
}
7575

7676
$Test_ScriptResult = Test-ScheduledTaskScript
77-
77+
7878
$Test_DescResult = ( $task.Description -eq $TaskDesc )
7979
Write-Progress -Activity "Testing Scheduled Task" -CurrentOperation "Description Comparison finished with result: $Test_DescResult" -PercentComplete 80 -Id 1
8080

8181
$TestResult = ( $Test_DescResult -and $Test_ScriptResult )
8282
Write-Progress -Activity "Testing Scheduled Task" -CurrentOperation "Validation finished with result: $TestResult" -Completed -Id 1
83-
83+
8484
$TestResult
8585
}
8686

@@ -101,7 +101,7 @@ switch ($method) {
101101
}
102102
Write-Debug "DEBUG: Trigger is set to $($using:Trigger)"
103103
Write-Debug "DEBUG: Build Trigger: $buildtrigger"
104-
104+
105105
# Check if the task exists and remove it if it does
106106
if (![string]::IsNullOrWhiteSpace($using:task)){
107107
Unregister-ScheduledTask -TaskName $using:TaskName -Confirm:$false

0 commit comments

Comments
 (0)