Skip to content

Commit f473fd2

Browse files
committed
use string.equal
1 parent f013ff8 commit f473fd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Accounts/Authentication/Factories/AuthenticationFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,11 @@ private string GetFunctionsResourceId(string resourceIdOrEndpointName, IAzureEnv
438438
private string GetEndpointToken(IAzureAccount account, string targetEndpoint)
439439
{
440440
string tokenKey = AzureAccount.Property.AccessToken;
441-
if (targetEndpoint == AzureEnvironment.Endpoint.Graph)
441+
if (string.Equals(targetEndpoint, AzureEnvironment.Endpoint.Graph, StringComparison.OrdinalIgnoreCase))
442442
{
443443
tokenKey = AzureAccount.Property.GraphAccessToken;
444444
}
445-
if (targetEndpoint == AzureEnvironment.Endpoint.AzureKeyVaultServiceEndpointResourceId)
445+
if (string.Equals(targetEndpoint, AzureEnvironment.Endpoint.AzureKeyVaultServiceEndpointResourceId, StringComparison.OrdinalIgnoreCase))
446446
{
447447
tokenKey = AzureAccount.Property.KeyVaultAccessToken;
448448
}

0 commit comments

Comments
 (0)