Skip to content

Commit 6409710

Browse files
author
wkuo
committed
Update based on PR feedback.
1 parent 737e8ac commit 6409710

File tree

1 file changed

+1
-1
lines changed
  • src/ServiceManagement/Services/Commands.Utilities/Common/AzureTools

1 file changed

+1
-1
lines changed

src/ServiceManagement/Services/Commands.Utilities/Common/AzureTools/AzureTool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ private static string GetSdkVersionRegistryValue()
9696
}
9797

9898
// select the latest version of SDK installed on the machine.
99-
version = key.GetSubKeyNames().Last();
99+
version = key.GetSubKeyNames().LastOrDefault();
100100

101101
if (string.IsNullOrWhiteSpace(version) && key.GetSubKeyNames().Length == 0)
102102
{

0 commit comments

Comments
 (0)