Skip to content

Commit 8f0c34d

Browse files
Removing unnecesary if statement
1 parent da8d6fc commit 8f0c34d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Compute/Compute.Test/ScenarioTests/VirtualMachineTests.ps1

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3013,10 +3013,7 @@ function Test-VirtualMachineGetStatusWithHealhtExtension
30133013
try
30143014
{
30153015
# Common
3016-
if ($loc -eq $null)
3017-
{
3018-
$loc = Get-ComputeVMLocation;
3019-
}
3016+
$loc = Get-ComputeVMLocation;
30203017
$loc = $loc.Replace(' ', '');
30213018

30223019
New-AzResourceGroup -Name $rgname -Location $loc -Force;

0 commit comments

Comments
 (0)