Skip to content

Commit

Permalink
Fix linting syntax warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
RWebster-Noble committed Jun 13, 2024
1 parent eb4ee04 commit 0561556
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function Set-TargetResource
-Value $PhysicalPath
}

if($Credential)
if ($Credential)
{
Set-ItemProperty $ItemPath -Name userName -Value $Credential.UserName
Set-ItemProperty $ItemPath -Name password -Value $Credential.GetNetworkCredential().Password
Expand Down Expand Up @@ -263,7 +263,7 @@ function Test-TargetResource
{
if ($virtualDirectory.PhysicalPath -eq $PhysicalPath)
{
if(-not $Credential)
if (-not $Credential)
{
Write-Verbose -Message ($script:localizedData.VerboseTestTargetTrue)
return $true
Expand All @@ -281,7 +281,7 @@ function Test-TargetResource
$userName = (Get-ItemProperty $ItemPath -Name userName).Value
$password = (Get-ItemProperty $ItemPath -Name password).Value

if(($Credential.UserName -eq $userName -and $Credential.GetNetworkCredential().Password -eq $password))
if (($Credential.UserName -eq $userName -and $Credential.GetNetworkCredential().Password -eq $password))
{
Write-Verbose -Message ($script:localizedData.VerboseTestTargetTrue)
return $true
Expand Down

0 comments on commit 0561556

Please sign in to comment.