Skip to content

Commit

Permalink
Issue-dsccommunity#333 Change to use IsNullOrEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob-S committed Jun 17, 2020
1 parent abb57a1 commit 20f0b89
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1829,7 +1829,7 @@ function Get-CurrentResource
https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/40685125-bug-get-scheduledtask-returns-null-for-value-of-m
#>
$MultipleInstances = [System.String] $settings.MultipleInstances
if ($MultipleInstances -eq $NULL)
if ([String]::IsNullOrEmpty($MultipleInstances))
{
if ($task.settings.CimInstanceProperties.Item('MultipleInstances').Value -eq 3)
{
Expand Down

0 comments on commit 20f0b89

Please sign in to comment.