Skip to content

Commit 63268e4

Browse files
committed
20230321B
1 parent 3f1f53b commit 63268e4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hugoalh.GitHubActionsToolkit/module/nodejs-wrapper.psm1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ Function Invoke-NodeJsWrapper {
165165
Write-Error -Message 'This function depends and requires to invoke with the compatible NodeJS environment!' -Category 'ResourceUnavailable'
166166
Return
167167
}
168-
ForEach ($Item In @($WrapperPackageFilePath, $WrapperPackageLockFilePath, $WrapperBundledFilePath, $WrapperUnbundledFilePath)) {
169-
If (!(Test-Path -LiteralPath $Item -PathType 'Leaf')) {
170-
Write-Error -Message "Wrapper resource `"$Item`" is missing!" -Category 'ResourceUnavailable'
171-
Return
172-
}
168+
}
169+
ForEach ($Item In @($WrapperPackageFilePath, $WrapperPackageLockFilePath, $WrapperBundledFilePath, $WrapperUnbundledFilePath)) {
170+
If (!(Test-Path -LiteralPath $Item -PathType 'Leaf')) {
171+
Write-Error -Message "Wrapper resource `"$Item`" is missing!" -Category 'ResourceUnavailable'
172+
Return
173173
}
174174
}
175175
[String]$ResultSeparator = "=====$(New-GitHubActionsRandomToken)====="

0 commit comments

Comments
 (0)