Skip to content

Commit

Permalink
Remove redundant OS check before running az
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmelsayed committed Aug 31, 2018
1 parent 441217c commit 7efd91f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Azure.Functions.Cli/Actions/AzureActions/BaseAzureAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,7 @@ public async Task Initialize()

private async Task<string> GetAccessToken()
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ||
RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
return await AzureCliGetToken();
}
else
{
return await AzureCliGetToken();
}
return await AzureCliGetToken();
}

private async Task<string> AzureCliGetToken()
Expand Down

0 comments on commit 7efd91f

Please sign in to comment.