Skip to content

Commit 7efd91f

Browse files
committed
Remove redundant OS check before running az
1 parent 441217c commit 7efd91f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Azure.Functions.Cli/Actions/AzureActions/BaseAzureAction.cs

+1-9
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,7 @@ public async Task Initialize()
6666

6767
private async Task<string> GetAccessToken()
6868
{
69-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ||
70-
RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
71-
{
72-
return await AzureCliGetToken();
73-
}
74-
else
75-
{
76-
return await AzureCliGetToken();
77-
}
69+
return await AzureCliGetToken();
7870
}
7971

8072
private async Task<string> AzureCliGetToken()

0 commit comments

Comments
 (0)