Skip to content

Commit 34eb29a

Browse files
committed
Use string.IsNullOrEmpty instead
1 parent 1f7606b commit 34eb29a

File tree

1 file changed

+1
-2
lines changed
  • src/ResourceManager/PolicyInsights/Commands.PolicyInsights.Test/ScenarioTests

1 file changed

+1
-2
lines changed

src/ResourceManager/PolicyInsights/Commands.PolicyInsights.Test/ScenarioTests/Common.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,5 @@ function Assert-NotNullOrEmpty
251251
{
252252
param([string]$value)
253253

254-
Assert-NotNull $value
255-
Assert-True { $value -ne "" }
254+
Assert-False { [string]::IsNullOrEmpty($value) }
256255
}

0 commit comments

Comments
 (0)