Skip to content

Commit b7ca6ae

Browse files
committed
Took care of review comments
1 parent 3363815 commit b7ca6ae

File tree

1 file changed

+2
-6
lines changed
  • src/ResourceManager/Compute/Commands.Compute/Common

1 file changed

+2
-6
lines changed

src/ResourceManager/Compute/Commands.Compute/Common/Utils.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,9 @@ public static bool DoesConfigSupportAcceleratedNetwork(Client client, ImageAndOs
117117

118118
var fourCoreSize = FourCoreSizesForAccelNet.Where(x => x.ToLower().Equals(size.ToLower()));
119119

120-
if (fourCoreSize == null | fourCoreSize.Count() == 0)
120+
if (fourCoreSize == null || fourCoreSize.Count() == 0)
121121
{
122-
var locationToUse = location;
123-
if (String.IsNullOrWhiteSpace(locationToUse))
124-
{
125-
locationToUse = defaultLocation;
126-
}
122+
var locationToUse = String.IsNullOrWhiteSpace(location)? defaultLocation : location;
127123
//Check if the vm has enough cores
128124
var sizes = client.GetClient<ComputeManagementClient>().VirtualMachineSizes.List(locationToUse);
129125
if (sizes == null)

0 commit comments

Comments
 (0)