Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Commit 4521e8b

Browse files
committed
update psm1 file to pass script analyzer, update psd1 file to satisfy gallery requirements
1 parent 67e89b4 commit 4521e8b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Binary file not shown.

Modules/OperationValidation/OperationValidation.psm1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,15 @@ param (
202202
param ( [string[]]$Name )
203203
foreach($p in $env:psmodulepath.split(";"))
204204
{
205-
if ( test-path $p )
205+
if ( test-path -path $p )
206206
{
207-
foreach($modDir in get-childitem $p -directory)
207+
foreach($modDir in get-childitem -path $p -directory)
208208
{
209209
foreach ($n in $name )
210210
{
211211
if ( $modDir.Name -like $n )
212212
{
213-
if ( test-path ($modDir.FullName + "\Diagnostics"))
213+
if ( test-path -path ($modDir.FullName + "\Diagnostics"))
214214
{
215215
$modDir.FullName
216216
break
@@ -387,7 +387,7 @@ Function Convert-TestResult
387387
$testError = $null
388388
if ( $testResult.Result -eq "Failed" )
389389
{
390-
Write-Verbose "Creating error object"
390+
Write-Verbose -message "Creating error object"
391391
$testError = new-OperationValidationFailure -Stacktrace $testResult.StackTrace -FailureMessage $testResult.FailureMessage
392392
}
393393
$Module = $result.Path.split([io.path]::DirectorySeparatorChar)[-4]

0 commit comments

Comments
 (0)