Skip to content

Commit 586add7

Browse files
committed
20211222B
1 parent aa17470 commit 586add7

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

hugoalh.GitHubActionsToolkit.psm1

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,7 @@ function Invoke-GHActionsScriptGroup {
385385
Enter-GHActionsLogGroup -Title $Title
386386
try {
387387
return $ScriptBlock.Invoke()
388-
}
389-
finally {
388+
} finally {
390389
Exit-GHActionsLogGroup
391390
}
392391
}
@@ -412,8 +411,7 @@ function Write-GHActionsError {
412411
[Parameter()][uint]$EndColumn,
413412
[Parameter()][string]$Title
414413
)
415-
begin {}
416-
process {
414+
begin {
417415
$Properties = @{}
418416
if ($File.Length -gt 0) {
419417
$Properties.'file' = $File
@@ -433,6 +431,8 @@ function Write-GHActionsError {
433431
if ($Title.Length -gt 0) {
434432
$Properties.'title' = $Title
435433
}
434+
}
435+
process {
436436
Write-GHActionsCommand -Command 'error' -Message $Message -Properties $Properties
437437
}
438438
end {}
@@ -456,8 +456,7 @@ function Write-GHActionsNotice {
456456
[Parameter()][uint]$EndColumn,
457457
[Parameter()][string]$Title
458458
)
459-
begin {}
460-
process {
459+
begin {
461460
$Properties = @{}
462461
if ($File.Length -gt 0) {
463462
$Properties.'file' = $File
@@ -477,6 +476,8 @@ function Write-GHActionsNotice {
477476
if ($Title.Length -gt 0) {
478477
$Properties.'title' = $Title
479478
}
479+
}
480+
process {
480481
Write-GHActionsCommand -Command 'notice' -Message $Message -Properties $Properties
481482
}
482483
end {}
@@ -492,8 +493,7 @@ function Write-GHActionsWarning {
492493
[Parameter()][uint]$EndColumn,
493494
[Parameter()][string]$Title
494495
)
495-
begin {}
496-
process {
496+
begin {
497497
$Properties = @{}
498498
if ($File.Length -gt 0) {
499499
$Properties.'file' = $File
@@ -513,6 +513,8 @@ function Write-GHActionsWarning {
513513
if ($Title.Length -gt 0) {
514514
$Properties.'title' = $Title
515515
}
516+
}
517+
process {
516518
Write-GHActionsCommand -Command 'warning' -Message $Message -Properties $Properties
517519
}
518520
end {}

0 commit comments

Comments
 (0)