Skip to content

Commit 62603be

Browse files
committed
20230323E
1 parent d38bc7c commit 62603be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hugoalh.GitHubActionsToolkit/module/nodejs-wrapper.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ Function Test-NodeJsEnvironment {
152152
[String]$NodeJsVersionStdOut = node --no-deprecation --no-warnings --version |
153153
Join-String -Separator "`n"
154154
If (
155-
$NodeJsVersionStdOut -inotmatch $SemVerRegEx -or
156-
$NodeJsMinimumVersion -igt [SemVer]::Parse(($Matches[0] -ireplace '^v', ''))
155+
($NodeJsVersionStdOut -inotmatch $SemVerRegEx) -or
156+
($NodeJsMinimumVersion -igt [SemVer]::Parse(($Matches[0] -ireplace '^v', '')))
157157
) {
158158
Throw
159159
}

hugoalh.GitHubActionsToolkit/module/utility.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Function Add-SecretMask {
2929
Write-GitHubActionsStdOutCommand -StdOutCommand 'add-mask' -Value $Value
3030
If ($WithChunks.IsPresent) {
3131
$Value -isplit '[\b\n\r\s\t -/:-@\[-`{-~]+' |
32-
Where-Object -FilterScript { $_.Length -ige 4 -and $_ -ine $Value } |
32+
Where-Object -FilterScript { ($_.Length -ige 4) -and ($_ -ine $Value) } |
3333
ForEach-Object -Process { Write-GitHubActionsStdOutCommand -StdOutCommand 'add-mask' -Value $_ }
3434
}
3535
}

0 commit comments

Comments
 (0)