simplifying logic in helper function

This commit is contained in:
Mariah Breakey
2017-01-27 16:21:10 -08:00
parent 5340133428
commit 37d36e93ac
@@ -1040,14 +1040,7 @@ function Test-TargetResourceOnNanoServer
if ($_.FullyQualifiedErrorId -match 'UserNotFound')
{
# The user is not found
if ($Ensure -eq 'Absent')
{
return $true
}
else
{
return $false
}
return ($Ensure -eq 'Absent')
}
else
{